win32/sdl: fix icon resource ID

This commit is contained in:
Thomas Bernard 2018-07-04 18:26:37 +02:00
parent 60a10f0754
commit b5d64d35d4

View File

@ -571,7 +571,7 @@ void Define_icon(void)
// Icon is resource #1 // Icon is resource #1
hresource = FindResource(hInstance, hresource = FindResource(hInstance,
MAKEINTRESOURCE(1), MAKEINTRESOURCE(100),
RT_GROUP_ICON); RT_GROUP_ICON);
if (hresource==NULL) if (hresource==NULL)
break; break;
@ -697,7 +697,7 @@ void Define_icon(void)
byte *icon_mask; byte *icon_mask;
int x,y; int x,y;
icon_mask = malloc(icon->w * icon->h / 8); icon_mask = (byte *)malloc(icon->w * icon->h / 8);
memset(icon_mask, 0, icon->w * icon->h / 8); memset(icon_mask, 0, icon->w * icon->h / 8);
for (y=0; y<icon->h; y++) for (y=0; y<icon->h; y++)
for (x=0; x<icon->w; x++) for (x=0; x<icon->w; x++)