[MPlayer-cvslog] r34703 - trunk/libvo/vo_sdl.c

reimar subversion at mplayerhq.hu
Sun Feb 12 20:27:35 CET 2012


Author: reimar
Date: Sun Feb 12 20:27:35 2012
New Revision: 34703

Log:
Deduplicate some code that exists both in the if and else branch.

Modified:
   trunk/libvo/vo_sdl.c

Modified: trunk/libvo/vo_sdl.c
==============================================================================
--- trunk/libvo/vo_sdl.c	Sun Feb 12 20:03:19 2012	(r34702)
+++ trunk/libvo/vo_sdl.c	Sun Feb 12 20:27:35 2012	(r34703)
@@ -552,13 +552,9 @@ static void set_fullmode (int mode) {
 		  }
 		mp_msg(MSGT_VO,MSGL_V, "SET SDL Mode: %d:  %d x %d\n", mode, priv->fullmodes[mode]->w, priv->fullmodes[mode]->h);
 		priv->fullmode = mode;
-        screen_surface_h = priv->fullmodes[mode]->h;
-        screen_surface_w = priv->fullmodes[mode]->w;
 	}
-    else {
        screen_surface_h = priv->fullmodes[mode]->h;
        screen_surface_w = priv->fullmodes[mode]->w;
-	}
 
 	aspect_save_screenres(screen_surface_w, screen_surface_h);
 


More information about the MPlayer-cvslog mailing list