# HG changeset patch # User reimar # Date 1329074855 0 # Node ID 306ee51a2fa08fe88bf985f15cd72acda1316001 # Parent f9f91ba805b9cb89a9204171088474978cca878c Deduplicate some code that exists both in the if and else branch. diff -r f9f91ba805b9 -r 306ee51a2fa0 libvo/vo_sdl.c --- 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);