Mercurial > sdl-ios-xcode
comparison src/video/windows/SDL_windowsmodes.c @ 5088:c2539ff054c8
Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Jan 2011 15:46:11 -0800 |
parents | e8916fe9cfc8 |
children | be02be2ea897 |
comparison
equal
deleted
inserted
replaced
5087:e7680e2c9f3c | 5088:c2539ff054c8 |
---|---|
21 */ | 21 */ |
22 #include "SDL_config.h" | 22 #include "SDL_config.h" |
23 | 23 |
24 #include "SDL_windowsvideo.h" | 24 #include "SDL_windowsvideo.h" |
25 | 25 |
26 /* Windows CE compatibility */ | |
27 #ifndef CDS_FULLSCREEN | |
28 #define CDS_FULLSCREEN 0 | |
29 #endif | |
26 | 30 |
27 static SDL_bool | 31 static SDL_bool |
28 WIN_GetDisplayMode(LPCTSTR deviceName, DWORD index, SDL_DisplayMode * mode) | 32 WIN_GetDisplayMode(LPCTSTR deviceName, DWORD index, SDL_DisplayMode * mode) |
29 { | 33 { |
30 SDL_DisplayModeData *data; | 34 SDL_DisplayModeData *data; |
31 DEVMODE devmode; | 35 DEVMODE devmode; |
36 #ifndef _WIN32_WCE | |
32 HDC hdc; | 37 HDC hdc; |
38 #endif | |
33 | 39 |
34 devmode.dmSize = sizeof(devmode); | 40 devmode.dmSize = sizeof(devmode); |
35 devmode.dmDriverExtra = 0; | 41 devmode.dmDriverExtra = 0; |
36 if (!EnumDisplaySettings(deviceName, index, &devmode)) { | 42 if (!EnumDisplaySettings(deviceName, index, &devmode)) { |
37 return SDL_FALSE; | 43 return SDL_FALSE; |