Patch from Dmitry Yakimov to fix building on WinCE
authorSam Lantinga <slouken@libsdl.org>
Wed, 03 May 2006 04:11:38 +0000
changeset 1760a9be6a3a51d1
parent 1759 724cca1bda2d
child 1761 39715a34a0be
Patch from Dmitry Yakimov to fix building on WinCE
VisualCE.zip
include/SDL_syswm.h
src/events/SDL_keyboard.c
test/testwin.c
     1.1 Binary file VisualCE.zip has changed
     2.1 --- a/include/SDL_syswm.h	Tue May 02 15:18:07 2006 +0000
     2.2 +++ b/include/SDL_syswm.h	Wed May 03 04:11:38 2006 +0000
     2.3 @@ -115,7 +115,7 @@
     2.4  	GR_WINDOW_ID window ;	/* The display window */
     2.5  } SDL_SysWMinfo;
     2.6  
     2.7 -#elif defined(SDL_VIDEO_DRIVER_WINDIB) || defined(SDL_VIDEO_DRIVER_DDRAW)
     2.8 +#elif defined(SDL_VIDEO_DRIVER_WINDIB) || defined(SDL_VIDEO_DRIVER_DDRAW) || defined(SDL_VIDEO_DRIVER_GAPI)
     2.9  #define WIN32_LEAN_AND_MEAN
    2.10  #include <windows.h>
    2.11  
     3.1 --- a/src/events/SDL_keyboard.c	Tue May 02 15:18:07 2006 +0000
     3.2 +++ b/src/events/SDL_keyboard.c	Wed May 03 04:11:38 2006 +0000
     3.3 @@ -59,7 +59,7 @@
     3.4  
     3.5  	/* Initialize the tables */
     3.6  	SDL_ModState = KMOD_NONE;
     3.7 -	SDL_memset(keynames, 0, sizeof(keynames));
     3.8 +	SDL_memset((void*)keynames, 0, sizeof(keynames));
     3.9  	SDL_memset(SDL_KeyState, 0, sizeof(SDL_KeyState));
    3.10  	video->InitOSKeymap(this);
    3.11  
     4.1 --- a/test/testwin.c	Tue May 02 15:18:07 2006 +0000
     4.2 +++ b/test/testwin.c	Wed May 03 04:11:38 2006 +0000
     4.3 @@ -250,9 +250,9 @@
     4.4  	delay = 1;
     4.5  
     4.6  #ifdef _WIN32_WCE
     4.7 -	w = 640;
     4.8 +	w = 240;
     4.9  	h = 320;
    4.10 -	desired_bpp = 0;
    4.11 +	desired_bpp = 8;
    4.12  	video_flags = SDL_FULLSCREEN;
    4.13  #else
    4.14  	w = 640;