Patch from Dmitry Yakimov to fix building on WinCE

This commit is contained in:
Sam Lantinga 2006-05-03 04:11:38 +00:00
parent a86ca3b055
commit 064511501d
4 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -115,7 +115,7 @@ typedef struct SDL_SysWMinfo {
GR_WINDOW_ID window ; /* The display window */
} 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
#include <windows.h>

View File

@ -59,7 +59,7 @@ int SDL_KeyboardInit(void)
/* Initialize the tables */
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));
video->InitOSKeymap(this);

View File

@ -250,9 +250,9 @@ int main(int argc, char *argv[])
delay = 1;
#ifdef _WIN32_WCE
w = 640;
w = 240;
h = 320;
desired_bpp = 0;
desired_bpp = 8;
video_flags = SDL_FULLSCREEN;
#else
w = 640;