Patch from Dmitry Yakimov to fix building on WinCE
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401719
This commit is contained in:
parent
2c19f77a0f
commit
b74b770864
4 changed files with 4 additions and 4 deletions
BIN
VisualCE.zip
BIN
VisualCE.zip
Binary file not shown.
|
@ -115,7 +115,7 @@ typedef struct SDL_SysWMinfo {
|
||||||
GR_WINDOW_ID window ; /* The display window */
|
GR_WINDOW_ID window ; /* The display window */
|
||||||
} SDL_SysWMinfo;
|
} SDL_SysWMinfo;
|
||||||
|
|
||||||
#elif defined(SDL_VIDEO_DRIVER_WINDIB) || defined(SDL_VIDEO_DRIVER_DDRAW)
|
#elif defined(SDL_VIDEO_DRIVER_WINDIB) || defined(SDL_VIDEO_DRIVER_DDRAW) || defined(SDL_VIDEO_DRIVER_GAPI)
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ int SDL_KeyboardInit(void)
|
||||||
|
|
||||||
/* Initialize the tables */
|
/* Initialize the tables */
|
||||||
SDL_ModState = KMOD_NONE;
|
SDL_ModState = KMOD_NONE;
|
||||||
SDL_memset(keynames, 0, sizeof(keynames));
|
SDL_memset((void*)keynames, 0, sizeof(keynames));
|
||||||
SDL_memset(SDL_KeyState, 0, sizeof(SDL_KeyState));
|
SDL_memset(SDL_KeyState, 0, sizeof(SDL_KeyState));
|
||||||
video->InitOSKeymap(this);
|
video->InitOSKeymap(this);
|
||||||
|
|
||||||
|
|
|
@ -250,9 +250,9 @@ int main(int argc, char *argv[])
|
||||||
delay = 1;
|
delay = 1;
|
||||||
|
|
||||||
#ifdef _WIN32_WCE
|
#ifdef _WIN32_WCE
|
||||||
w = 640;
|
w = 240;
|
||||||
h = 320;
|
h = 320;
|
||||||
desired_bpp = 0;
|
desired_bpp = 8;
|
||||||
video_flags = SDL_FULLSCREEN;
|
video_flags = SDL_FULLSCREEN;
|
||||||
#else
|
#else
|
||||||
w = 640;
|
w = 640;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue