mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 15:58:04 -05:00
Patch from Dmitry Yakimov to fix building on WinCE
This commit is contained in:
parent
a86ca3b055
commit
064511501d
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 */
|
||||
} 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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user