From 46f3b7d26327254bc471987d257bf62ad6f1eeca Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 27 Apr 2010 19:04:23 +0000 Subject: Move variable declaration into the block where it is actually used. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31103 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 6a0ad3776e..57ff565b2d 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -368,9 +368,9 @@ static void init_atoms(void) void update_xinerama_info(void) { xinerama_x = xinerama_y = 0; #ifdef CONFIG_XINERAMA - int screen = xinerama_screen; - if (screen >= -1 && XineramaIsActive(mDisplay)) + if (xinerama_screen >= -1 && XineramaIsActive(mDisplay)) { + int screen = xinerama_screen; XineramaScreenInfo *screens; int num_screens; -- cgit v1.2.3