Skip to content

Commit

Permalink
Patch from Dmitry Yakimov to fix building on WinCE
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 3, 2006
1 parent 23134fe commit a5fa128
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified VisualCE.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion include/SDL_syswm.h
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion src/events/SDL_keyboard.c
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions test/testwin.c
Expand Up @@ -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;
Expand Down

0 comments on commit a5fa128

Please sign in to comment.