diff libvo/vo_sdl.c @ 34615:306ee51a2fa0

Deduplicate some code that exists both in the if and else branch.
author reimar
date Sun, 12 Feb 2012 19:27:35 +0000
parents f1a31e5fc35f
children 7ed1813fa657
line wrap: on
line diff
--- a/libvo/vo_sdl.c	Sun Feb 12 19:03:19 2012 +0000
+++ b/libvo/vo_sdl.c	Sun Feb 12 19:27:35 2012 +0000
@@ -552,13 +552,9 @@
 		  }
 		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);