Mercurial > mplayer.hg
comparison libvo/x11_common.c @ 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 | b80e4d240178 |
children | 453095f84e98 |
comparison
equal
deleted
inserted
replaced
31060:3d5814888491 | 31061:075a2c6bebb4 |
---|---|
366 } | 366 } |
367 | 367 |
368 void update_xinerama_info(void) { | 368 void update_xinerama_info(void) { |
369 xinerama_x = xinerama_y = 0; | 369 xinerama_x = xinerama_y = 0; |
370 #ifdef CONFIG_XINERAMA | 370 #ifdef CONFIG_XINERAMA |
371 int screen = xinerama_screen; | 371 if (xinerama_screen >= -1 && XineramaIsActive(mDisplay)) |
372 if (screen >= -1 && XineramaIsActive(mDisplay)) | 372 { |
373 { | 373 int screen = xinerama_screen; |
374 XineramaScreenInfo *screens; | 374 XineramaScreenInfo *screens; |
375 int num_screens; | 375 int num_screens; |
376 | 376 |
377 screens = XineramaQueryScreens(mDisplay, &num_screens); | 377 screens = XineramaQueryScreens(mDisplay, &num_screens); |
378 if (screen >= num_screens) | 378 if (screen >= num_screens) |