Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32window.c @ 2990:502adab079a4
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 04 Jan 2009 17:14:27 +0000 |
parents | a3012c6652ff |
children | 9acb9f0f7f0d |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32window.c Sun Jan 04 17:10:04 2009 +0000 +++ b/src/video/win32/SDL_win32window.c Sun Jan 04 17:14:27 2009 +0000 @@ -318,7 +318,7 @@ HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd; HICON hicon = NULL; - if(icon) { + if (icon) { BYTE *icon_bmp; int icon_len; SDL_RWops *dst; @@ -337,7 +337,7 @@ /* Write the BITMAPINFO header */ SDL_WriteLE32(dst, 40); SDL_WriteLE32(dst, icon->w); - SDL_WriteLE32(dst, icon->h*2); + SDL_WriteLE32(dst, icon->h * 2); SDL_WriteLE16(dst, 1); SDL_WriteLE16(dst, 32); SDL_WriteLE32(dst, BI_RGB); @@ -355,22 +355,23 @@ /* Write the pixels upside down into the bitmap buffer */ int y = surface->h; while (y--) { - Uint8 *src = (Uint8 *)surface->pixels + y * surface->pitch; + Uint8 *src = (Uint8 *) surface->pixels + y * surface->pitch; SDL_RWwrite(dst, src, surface->pitch, 1); } SDL_FreeSurface(surface); - hicon = CreateIconFromResource(icon_bmp, icon_len, TRUE, 0x00030000); + hicon = + CreateIconFromResource(icon_bmp, icon_len, TRUE, 0x00030000); } SDL_RWclose(dst); SDL_stack_free(icon_bmp); } /* Set the icon for the window */ - SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)hicon); + SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM) hicon); /* Set the icon in the task manager (should we do this?) */ - SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM)hicon); + SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM) hicon); } void