Updated Windows CE/PocketPC support...adds GAPI driver, landscape mode,
updated project files, VS2005 support, VGA mode, more device support, etc, etc, etc. Fixes Bugzilla #47 and #28. --ryan. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401254
This commit is contained in:
parent
e691b06188
commit
f2d9ddec98
19 changed files with 1457 additions and 10 deletions
|
@ -30,7 +30,10 @@ static char rcsid =
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <windows.h>
|
||||
|
||||
#ifndef _WIN32_WCE
|
||||
#include <process.h>
|
||||
#endif
|
||||
|
||||
#include "SDL_error.h"
|
||||
#include "SDL_thread.h"
|
||||
|
@ -53,9 +56,14 @@ int SDL_SYS_CreateThread(SDL_Thread *thread, void *args)
|
|||
* have to use _beginthreadex if we want the returned handle
|
||||
* to be accessible after the thread exits
|
||||
* threads created with _beginthread auto-close the handle
|
||||
* Windows CE still use CreateThread.
|
||||
*/
|
||||
#ifdef _WIN32_WCE
|
||||
thread->handle = CreateThread(NULL, 0, RunThread, args, 0, &threadid);
|
||||
#else
|
||||
thread->handle = (SYS_ThreadHandle) _beginthreadex(NULL, 0, RunThread,
|
||||
args, 0, &threadid);
|
||||
#endif
|
||||
if (thread->handle == NULL) {
|
||||
SDL_SetError("Not enough resources to create thread");
|
||||
return(-1);
|
||||
|
|
|
@ -201,9 +201,9 @@ static SYNCHHANDLE CleanUp (SYNCHHANDLE hSynch, DWORD Flags)
|
|||
BOOL ok = TRUE;
|
||||
|
||||
if (hSynch == NULL) return NULL;
|
||||
if (Flags & 4 == 1 && hSynch->hEvent == NULL) ok = FALSE;
|
||||
if (Flags & 2 == 1 && hSynch->hMutex == NULL) ok = FALSE;
|
||||
if (Flags & 1 == 1 && hSynch->hEvent == NULL) ok = FALSE;
|
||||
if ((Flags & 4) == 1 && (hSynch->hEvent == NULL)) ok = FALSE;
|
||||
if ((Flags & 2) == 1 && (hSynch->hMutex == NULL)) ok = FALSE;
|
||||
if ((Flags & 1) == 1 && (hSynch->hEvent == NULL)) ok = FALSE;
|
||||
if (!ok)
|
||||
{
|
||||
CloseSynchHandle (hSynch);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue