mirror of
https://github.com/joel16/SDL2.git
synced 2024-12-04 17:44:35 +00:00
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
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