Mercurial > mplayer.hg
comparison libvo/x11_common.c @ 26406:92037292fe2b
move the #ifdef HAVE_XINERAMA to enclose the whole function
author | attila |
---|---|
date | Sun, 13 Apr 2008 11:12:24 +0000 |
parents | d557441dc9c5 |
children | 7451ffea2efb |
comparison
equal
deleted
inserted
replaced
26405:d557441dc9c5 | 26406:92037292fe2b |
---|---|
365 XA_INIT(WM_PROTOCOLS); | 365 XA_INIT(WM_PROTOCOLS); |
366 XA_INIT(WM_DELETE_WINDOW); | 366 XA_INIT(WM_DELETE_WINDOW); |
367 } | 367 } |
368 | 368 |
369 void update_xinerama_info(void) { | 369 void update_xinerama_info(void) { |
370 #ifdef HAVE_XINERAMA | |
370 int screen = xinerama_screen; | 371 int screen = xinerama_screen; |
371 // center coordinates of the window | 372 // center coordinates of the window |
372 int x = vo_dx + vo_dwidth / 2; | 373 int x = vo_dx + vo_dwidth / 2; |
373 int y = vo_dy + vo_dheight / 2; | 374 int y = vo_dy + vo_dheight / 2; |
374 xinerama_x = xinerama_y = 0; | 375 xinerama_x = xinerama_y = 0; |
375 #ifdef HAVE_XINERAMA | |
376 if (screen >= -1 && XineramaIsActive(mDisplay)) | 376 if (screen >= -1 && XineramaIsActive(mDisplay)) |
377 { | 377 { |
378 XineramaScreenInfo *screens; | 378 XineramaScreenInfo *screens; |
379 int num_screens; | 379 int num_screens; |
380 | 380 |