src/video/wincommon/SDL_syswm.c
changeset 1465 8dfa9a6d69a5
parent 1457 337665b695d1
child 1481 deb22b9fe970
equal deleted inserted replaced
1464:af30090c0330 1465:8dfa9a6d69a5
   218 	screen_icn = CreateIconFromResourceEx((Uint8 *)icon_win32, icon_len,
   218 	screen_icn = CreateIconFromResourceEx((Uint8 *)icon_win32, icon_len,
   219 			TRUE, 0x00030000, icon->w, icon->h, LR_DEFAULTCOLOR);
   219 			TRUE, 0x00030000, icon->w, icon->h, LR_DEFAULTCOLOR);
   220 	if ( screen_icn == NULL ) {
   220 	if ( screen_icn == NULL ) {
   221 		SDL_SetError("Couldn't create Win32 icon handle");
   221 		SDL_SetError("Couldn't create Win32 icon handle");
   222 	} else {
   222 	} else {
   223 #ifndef SetClassLongPtr
       
   224 #define SetClassLongPtr	SetClassLong
       
   225 #endif
       
   226 		SetClassLongPtr(SDL_Window, GCL_HICON, (LONG_PTR)screen_icn);
   223 		SetClassLongPtr(SDL_Window, GCL_HICON, (LONG_PTR)screen_icn);
   227 	}
   224 	}
   228 	SDL_stack_free(icon_win32);
   225 	SDL_stack_free(icon_win32);
   229 #endif /* DISABLE_ICON_SUPPORT */
   226 #endif /* DISABLE_ICON_SUPPORT */
   230 }
   227 }