Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 30, 2002
1 parent f052802 commit 4927029
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/audio/macrom/SDL_romaudio.c
Expand Up @@ -147,7 +147,7 @@ static void Mac_UnlockAudio(_THIS)
return;

/* 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
* while the audio was locked, and get preempted by a second
Expand Down Expand Up @@ -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
* 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]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/video/quartz/SDL_QuartzVideo.m
Expand Up @@ -1240,7 +1240,7 @@ static int QZ_GL_GetAttribute (_THIS, SDL_GLattr attrib, int* value) {
return 0;
}

glGetIntegerv (attr, value);
glGetIntegerv (attr, (GLint *)value);
return 0;
}

Expand Down
8 changes: 5 additions & 3 deletions src/video/quartz/SDL_QuartzWM.m
Expand Up @@ -231,9 +231,11 @@ static void QZ_SetIcon (_THIS, SDL_Surface *icon, Uint8 *mask)
SDL_GetClipRect(icon, &rrect);
/* create a big endian RGBA surface */
mergedSurface = SDL_CreateRGBSurface(SDL_SWSURFACE|SDL_SRCALPHA,
icon->w, icon->h, 32, 0xff<<24, 0xff<<16, 0xff<<8, 0xff<<0);
if (mergedSurface==NULL) { NSLog(@"Error creating surface for
merge"); goto freePool; }
icon->w, icon->h, 32, 0xff<<24, 0xff<<16, 0xff<<8, 0xff<<0);
if (mergedSurface==NULL) {
NSLog(@"Error creating surface for merge");
goto freePool;
}
if (SDL_BlitSurface(icon,&rrect,mergedSurface,&rrect)) {
NSLog(@"Error blitting to mergedSurface");
goto freePool;
Expand Down

0 comments on commit 4927029

Please sign in to comment.