Patch for SDL_QuartzVideo

hello
this is a patch to disable the macosx screensaver and prevent screen
dimming while in fullscreen mode.
please implement something like the appended patch to SDL_QuartzVideo
(because apps like mplayer which use SDL fullscreen get a black screen
after the screen dimming timeout)
this is really something that should be fixed at the SDL library level
please tell me if you will apply (something like) this
regards

— SDL_QuartzVideo Kopie.m Sat Oct 5 07:07:57 2002
+++ SDL_QuartzVideo.m Fri Mar 14 19:30:20 2003
@@ -642,7 +642,7 @@

static SDL_Surface* QZ_SetVideoMode (_THIS, SDL_Surface *current, int
width,
int height, int bpp, Uint32
flags) {-

  •   static screenSaverTimer;
    current->flags = 0;
    
    /* Setup full screen video */
    

@@ -650,6 +650,7 @@
current = QZ_SetVideoFullScreen (this, current, width, height,
bpp, flags );
if (current == NULL)
return NULL;

  •           screenSaverTimer = SDL_AddTimer(100*60*4, 
    

QZ_ScreenSaverTimer, NULL);
}
/* Setup windowed video */
else {
@@ -658,6 +659,8 @@
current = QZ_SetVideoWindowed (this, current, width, height,
bpp, flags);
if (current == NULL)
return NULL;

  •    if (screenSaverTimer != NULL)
    
  •           SDL_RemoveTimer(screenSaverTimer);
    }
    
    /* Setup the new pixel format */
    

@@ -696,6 +699,12 @@
video_set = SDL_TRUE;

  return current;

+}
+
+static Uint32 QZ_ScreenSaverTimer(Uint32 interval, void *param)
+{

  •   UpdateSystemActivity(UsrActivity);
    
  • return interval;
    }

static int QZ_ToggleFullScreen (_THIS, int on) {