Commit 60d9c91d authored by Sam Lantinga's avatar Sam Lantinga

Date: Wed, 26 Nov 2003 01:52:02 +0800

From: "Andy Pfiffer"
Subject: [SDL] patch: PocketPC 2000 diffs for release_1_2_6

I was making a backup of my current workspace of SDL for PocketPC,
and thought I would send out my diffs.

Apologies in advance if the patch has become whitespace mangled.

These diffs are relative to CVS tag release_1_2_6, and contain (I think)
all changes that have been mentioned on the mailing list in the last
few months.

I only have PocketPC 2000 & an ARM-based device (iPaq 3635), and I
only use Embedded Visual Tools 3.0, so I can't say for sure if it
breaks other PocketPC 200[023] builds.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40767
parent 7ad9d800
...@@ -14,9 +14,10 @@ ...@@ -14,9 +14,10 @@
#ifdef _WIN32_WCE #ifdef _WIN32_WCE
# define DIR_SEPERATOR TEXT("\\") # define DIR_SEPERATOR TEXT("\\")
# define _getcwd(str,len) wcscpy(str,DIR_SEPERATOR); # undef _getcwd
# define setbuf(x) # define _getcwd(str,len) wcscpy(str,TEXT(""))
# define setvbuf(x) # define setbuf(f,b)
# define setvbuf(w,x,y,z)
# define fopen _wfopen # define fopen _wfopen
# define freopen _wfreopen # define freopen _wfreopen
# define remove(x) DeleteFile(x) # define remove(x) DeleteFile(x)
......
...@@ -79,6 +79,7 @@ static int WIN_GL_ResetWindow(_THIS) ...@@ -79,6 +79,7 @@ static int WIN_GL_ResetWindow(_THIS)
return(status); return(status);
} }
#ifdef HAVE_OPENGL
static void Init_WGL_ARB_extensions(_THIS) static void Init_WGL_ARB_extensions(_THIS)
{ {
HWND hwnd; HWND hwnd;
...@@ -127,6 +128,7 @@ static void Init_WGL_ARB_extensions(_THIS) ...@@ -127,6 +128,7 @@ static void Init_WGL_ARB_extensions(_THIS)
ReleaseDC(hwnd, hdc); ReleaseDC(hwnd, hdc);
DestroyWindow(hwnd); DestroyWindow(hwnd);
} }
#endif /* !HAVE_OPENGL */
int WIN_GL_SetupWindow(_THIS) int WIN_GL_SetupWindow(_THIS)
{ {
......
...@@ -58,7 +58,10 @@ static char rcsid = ...@@ -58,7 +58,10 @@ static char rcsid =
#define NO_GAMMA_SUPPORT #define NO_GAMMA_SUPPORT
#endif #endif
#ifndef WS_MAXIMIZE #ifndef WS_MAXIMIZE
#define WS_MAXIMIZE 0 #define WS_MAXIMIZE 0
#endif
#ifndef WS_THICKFRAME
#define WS_THICKFRAME 0
#endif #endif
#ifndef SWP_NOCOPYBITS #ifndef SWP_NOCOPYBITS
#define SWP_NOCOPYBITS 0 #define SWP_NOCOPYBITS 0
......
...@@ -63,13 +63,13 @@ int main(int argc, char *argv[]) ...@@ -63,13 +63,13 @@ int main(int argc, char *argv[])
printf("Testing multiple timers...\n"); printf("Testing multiple timers...\n");
t1 = SDL_AddTimer(100, callback, (void*)1); t1 = SDL_AddTimer(100, callback, (void*)1);
if(!t1) if(!t1)
fprintf(stderr,"Could not create timer 1\n"); fprintf(stderr,"Could not create timer 1: %s\n", SDL_GetError());
t2 = SDL_AddTimer(50, callback, (void*)2); t2 = SDL_AddTimer(50, callback, (void*)2);
if(!t2) if(!t2)
fprintf(stderr,"Could not create timer 2\n"); fprintf(stderr,"Could not create timer 2: %s\n", SDL_GetError());
t3 = SDL_AddTimer(233, callback, (void*)3); t3 = SDL_AddTimer(233, callback, (void*)3);
if(!t3) if(!t3)
fprintf(stderr,"Could not create timer 3\n"); fprintf(stderr,"Could not create timer 3: %s\n", SDL_GetError());
/* Wait 10 seconds */ /* Wait 10 seconds */
printf("Waiting 10 seconds\n"); printf("Waiting 10 seconds\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment