Commit ff3fb0db authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40325
parent b9548234
...@@ -147,7 +147,7 @@ static void Mac_UnlockAudio(_THIS) ...@@ -147,7 +147,7 @@ static void Mac_UnlockAudio(_THIS)
return; return;
/* Did we miss the chance to mix in an interrupt? Do it now. */ /* Did we miss the chance to mix in an interrupt? Do it now. */
if ( BitAndAtomic (0xFFFFFFFF, &need_to_mix) ) { if ( BitAndAtomic (0xFFFFFFFF, (UInt32 *) &need_to_mix) ) {
/* /*
* Note that this could be a problem if you missed an interrupt * Note that this could be a problem if you missed an interrupt
* while the audio was locked, and get preempted by a second * while the audio was locked, and get preempted by a second
...@@ -184,7 +184,7 @@ static void callBackProc (SndChannel *chan, SndCommand *cmd_passed ) { ...@@ -184,7 +184,7 @@ static void callBackProc (SndChannel *chan, SndCommand *cmd_passed ) {
* if audio device isn't locked, mix the next buffer to be queued in * if audio device isn't locked, mix the next buffer to be queued in
* the memory block that just finished playing. * the memory block that just finished playing.
*/ */
if ( ! BitAndAtomic(0xFFFFFFFF, &audio_is_locked) ) { if ( ! BitAndAtomic(0xFFFFFFFF, (UInt32 *) &audio_is_locked) ) {
mix_buffer (audio, buffer[fill_me]); mix_buffer (audio, buffer[fill_me]);
} }
......
...@@ -1240,7 +1240,7 @@ static int QZ_GL_GetAttribute (_THIS, SDL_GLattr attrib, int* value) { ...@@ -1240,7 +1240,7 @@ static int QZ_GL_GetAttribute (_THIS, SDL_GLattr attrib, int* value) {
return 0; return 0;
} }
glGetIntegerv (attr, value); glGetIntegerv (attr, (GLint *)value);
return 0; return 0;
} }
......
...@@ -231,9 +231,11 @@ static void QZ_SetIcon (_THIS, SDL_Surface *icon, Uint8 *mask) ...@@ -231,9 +231,11 @@ static void QZ_SetIcon (_THIS, SDL_Surface *icon, Uint8 *mask)
SDL_GetClipRect(icon, &rrect); SDL_GetClipRect(icon, &rrect);
/* create a big endian RGBA surface */ /* create a big endian RGBA surface */
mergedSurface = SDL_CreateRGBSurface(SDL_SWSURFACE|SDL_SRCALPHA, mergedSurface = SDL_CreateRGBSurface(SDL_SWSURFACE|SDL_SRCALPHA,
icon->w, icon->h, 32, 0xff<<24, 0xff<<16, 0xff<<8, 0xff<<0); icon->w, icon->h, 32, 0xff<<24, 0xff<<16, 0xff<<8, 0xff<<0);
if (mergedSurface==NULL) { NSLog(@"Error creating surface for if (mergedSurface==NULL) {
merge"); goto freePool; } NSLog(@"Error creating surface for merge");
goto freePool;
}
if (SDL_BlitSurface(icon,&rrect,mergedSurface,&rrect)) { if (SDL_BlitSurface(icon,&rrect,mergedSurface,&rrect)) {
NSLog(@"Error blitting to mergedSurface"); NSLog(@"Error blitting to mergedSurface");
goto freePool; goto freePool;
......
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