changeset 31061:075a2c6bebb4

Move variable declaration into the block where it is actually used.
author reimar
date Tue, 27 Apr 2010 19:04:23 +0000
parents 3d5814888491
children 84800a0b2ba7
files libvo/x11_common.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Tue Apr 27 17:50:50 2010 +0000
+++ b/libvo/x11_common.c	Tue Apr 27 19:04:23 2010 +0000
@@ -368,9 +368,9 @@
 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;