[MPlayer-cvslog] r34931 - trunk/libvo/sdl_common.c

reimar subversion at mplayerhq.hu
Sun May 20 19:38:18 CEST 2012


Author: reimar
Date: Sun May 20 19:38:18 2012
New Revision: 34931

Log:
Change if() condition into #if.

This avoids compile issues with some older SDL versions.

Modified:
   trunk/libvo/sdl_common.c

Modified: trunk/libvo/sdl_common.c
==============================================================================
--- trunk/libvo/sdl_common.c	Sun May 20 18:09:56 2012	(r34930)
+++ trunk/libvo/sdl_common.c	Sun May 20 19:38:18 2012	(r34931)
@@ -45,12 +45,13 @@ static int reinit;
 static void get_screensize(void) {
     const SDL_VideoInfo *vi;
     // TODO: better to use a check that gets the runtime version instead?
-    if (!SDL_VERSION_ATLEAST(1, 2, 10)) return;
+#if SDL_VERSION_ATLEAST(1, 2, 10)
     // Keep user-provided settings
     if (vo_screenwidth > 0 || vo_screenheight > 0) return;
     vi = SDL_GetVideoInfo();
     vo_screenwidth  = vi->current_w;
     vo_screenheight = vi->current_h;
+#endif
 }
 
 int vo_sdl_init(void)


More information about the MPlayer-cvslog mailing list