Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/windows/SDL_windowsmodes.c Mon Jan 24 15:10:16 2011 -0800 +++ b/src/video/windows/SDL_windowsmodes.c Mon Jan 24 15:46:11 2011 -0800 @@ -23,13 +23,19 @@ #include "SDL_windowsvideo.h" +/* Windows CE compatibility */ +#ifndef CDS_FULLSCREEN +#define CDS_FULLSCREEN 0 +#endif static SDL_bool WIN_GetDisplayMode(LPCTSTR deviceName, DWORD index, SDL_DisplayMode * mode) { SDL_DisplayModeData *data; DEVMODE devmode; +#ifndef _WIN32_WCE HDC hdc; +#endif devmode.dmSize = sizeof(devmode); devmode.dmDriverExtra = 0;