changeset 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 f9f91ba805b9
children 9c19ed884ee2
files libvo/vo_sdl.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
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);