Fixed variable scoping for Windows build
This commit is contained in:
parent
95b452107c
commit
ff8077550e
1 changed files with 2 additions and 2 deletions
|
@ -291,7 +291,7 @@ WIN_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
|
|||
HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
|
||||
HICON hicon = NULL;
|
||||
BYTE *icon_bmp;
|
||||
int icon_len;
|
||||
int icon_len, y;
|
||||
SDL_RWops *dst;
|
||||
|
||||
/* Create temporary bitmap buffer */
|
||||
|
@ -318,7 +318,7 @@ WIN_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
|
|||
|
||||
/* Write the pixels upside down into the bitmap buffer */
|
||||
SDL_assert(icon->format->format == SDL_PIXELFORMAT_ARGB8888);
|
||||
int y = icon->h;
|
||||
y = icon->h;
|
||||
while (y--) {
|
||||
Uint8 *src = (Uint8 *) icon->pixels + y * icon->pitch;
|
||||
SDL_RWwrite(dst, src, icon->pitch, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue