Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32modes.c @ 1965:a788656ca29a
SDL constants are all uppercase.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 05 Aug 2006 17:09:42 +0000 |
parents | 83420da906a5 |
children | 9341a884a4d9 |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32modes.c Thu Aug 03 19:34:05 2006 +0000 +++ b/src/video/win32/SDL_win32modes.c Sat Aug 05 17:09:42 2006 +0000 @@ -48,7 +48,7 @@ DM_DISPLAYFLAGS); /* Fill in the mode information */ - mode->format = SDL_PixelFormat_Unknown; + mode->format = SDL_PIXELFORMAT_UNKNOWN; mode->w = devmode.dmPelsWidth; mode->h = devmode.dmPelsHeight; mode->refresh_rate = devmode.dmDisplayFrequency; @@ -72,38 +72,38 @@ if (bmi->bmiHeader.biCompression == BI_BITFIELDS) { switch (*(Uint32 *) bmi->bmiColors) { case 0x00FF0000: - mode->format = SDL_PixelFormat_RGB888; + mode->format = SDL_PIXELFORMAT_RGB888; break; case 0x000000FF: - mode->format = SDL_PixelFormat_BGR888; + mode->format = SDL_PIXELFORMAT_BGR888; break; case 0xF800: - mode->format = SDL_PixelFormat_RGB565; + mode->format = SDL_PIXELFORMAT_RGB565; break; case 0x7C00: - mode->format = SDL_PixelFormat_RGB555; + mode->format = SDL_PIXELFORMAT_RGB555; break; } } else if (bmi->bmiHeader.biBitCount == 8) { - mode->format = SDL_PixelFormat_Index8; + mode->format = SDL_PIXELFORMAT_INDEX8; } } else { /* FIXME: Can we tell what this will be? */ switch (devmode.dmBitsPerPel) { case 32: - mode->format = SDL_PixelFormat_RGB888; + mode->format = SDL_PIXELFORMAT_RGB888; break; case 24: - mode->format = SDL_PixelFormat_RGB24; + mode->format = SDL_PIXELFORMAT_RGB24; break; case 16: - mode->format = SDL_PixelFormat_RGB565; + mode->format = SDL_PIXELFORMAT_RGB565; break; case 15: - mode->format = SDL_PixelFormat_RGB555; + mode->format = SDL_PIXELFORMAT_RGB555; break; case 8: - mode->format = SDL_PixelFormat_Index8; + mode->format = SDL_PIXELFORMAT_INDEX8; break; } }