src/video/windows/SDL_windowswindow.c
changeset 7527 7e254bcd3b9d
parent 7523 9e9ab1dc3811
child 7556 574f465da18a
     1.1 --- a/src/video/windows/SDL_windowswindow.c	Sat Jul 27 03:20:09 2013 -0700
     1.2 +++ b/src/video/windows/SDL_windowswindow.c	Sat Jul 27 03:22:37 2013 -0700
     1.3 @@ -291,7 +291,7 @@
     1.4      HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
     1.5      HICON hicon = NULL;
     1.6      BYTE *icon_bmp;
     1.7 -    int icon_len;
     1.8 +    int icon_len, y;
     1.9      SDL_RWops *dst;
    1.10  
    1.11      /* Create temporary bitmap buffer */
    1.12 @@ -318,7 +318,7 @@
    1.13  
    1.14      /* Write the pixels upside down into the bitmap buffer */
    1.15      SDL_assert(icon->format->format == SDL_PIXELFORMAT_ARGB8888);
    1.16 -    int y = icon->h;
    1.17 +    y = icon->h;
    1.18      while (y--) {
    1.19          Uint8 *src = (Uint8 *) icon->pixels + y * icon->pitch;
    1.20          SDL_RWwrite(dst, src, icon->pitch, 1);