Commit 66a8f11c authored by Sam Lantinga's avatar Sam Lantinga

Fixed some OpenWatcom warnings

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401447
parent 46f459a7
...@@ -72,7 +72,7 @@ int SDL_SYS_CreateThread(SDL_Thread *thread, void *args, pfnSDL_CurrentBeginThre ...@@ -72,7 +72,7 @@ int SDL_SYS_CreateThread(SDL_Thread *thread, void *args, pfnSDL_CurrentBeginThre
pThreadParms->args = args; pThreadParms->args = args;
// Start the thread using the runtime library of calling app! // Start the thread using the runtime library of calling app!
thread->threadid = thread->handle = (*pfnBeginThread)(threadfunc, NULL, 512*1024, pThreadParms); thread->threadid = thread->handle = (*pfnBeginThread)(threadfunc, NULL, 512*1024, pThreadParms);
if (thread->threadid<=0) if ((int)thread->threadid <= 0)
{ {
SDL_SetError("Not enough resources to create thread"); SDL_SetError("Not enough resources to create thread");
return(-1); return(-1);
......
...@@ -1468,10 +1468,11 @@ static void Blit16to16SurfaceAlpha128(SDL_BlitInfo *info, Uint16 mask) ...@@ -1468,10 +1468,11 @@ static void Blit16to16SurfaceAlpha128(SDL_BlitInfo *info, Uint16 mask)
Uint32 sw, dw, s; Uint32 sw, dw, s;
sw = *(Uint32 *)srcp; sw = *(Uint32 *)srcp;
dw = *(Uint32 *)dstp; dw = *(Uint32 *)dstp;
if(SDL_BYTEORDER == SDL_BIG_ENDIAN) #if SDL_BYTEORDER == SDL_BIG_ENDIAN
s = (prev_sw << 16) + (sw >> 16); s = (prev_sw << 16) + (sw >> 16);
else #else
s = (prev_sw >> 16) + (sw << 16); s = (prev_sw >> 16) + (sw << 16);
#endif
prev_sw = sw; prev_sw = sw;
*(Uint32 *)dstp = BLEND2x16_50(dw, s, mask); *(Uint32 *)dstp = BLEND2x16_50(dw, s, mask);
dstp += 2; dstp += 2;
...@@ -1482,10 +1483,11 @@ static void Blit16to16SurfaceAlpha128(SDL_BlitInfo *info, Uint16 mask) ...@@ -1482,10 +1483,11 @@ static void Blit16to16SurfaceAlpha128(SDL_BlitInfo *info, Uint16 mask)
/* final pixel if any */ /* final pixel if any */
if(w) { if(w) {
Uint16 d = *dstp, s; Uint16 d = *dstp, s;
if(SDL_BYTEORDER == SDL_BIG_ENDIAN) #if SDL_BYTEORDER == SDL_BIG_ENDIAN
s = (Uint16)prev_sw; s = (Uint16)prev_sw;
else #else
s = (Uint16)(prev_sw >> 16); s = (Uint16)(prev_sw >> 16);
#endif
*dstp = BLEND16_50(d, s, mask); *dstp = BLEND16_50(d, s, mask);
srcp++; srcp++;
dstp++; dstp++;
......
...@@ -835,10 +835,10 @@ static Uint32 GetBlitFeatures( void ) ...@@ -835,10 +835,10 @@ static Uint32 GetBlitFeatures( void )
#endif #endif
/* This is now endian dependent */ /* This is now endian dependent */
#if ( SDL_BYTEORDER == SDL_LIL_ENDIAN ) #if SDL_BYTEORDER == SDL_LIL_ENDIAN
#define HI 1 #define HI 1
#define LO 0 #define LO 0
#else /* ( SDL_BYTEORDER == SDL_BIG_ENDIAN ) */ #else /* SDL_BYTEORDER == SDL_BIG_ENDIAN */
#define HI 0 #define HI 0
#define LO 1 #define LO 1
#endif #endif
......
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