mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 09:57:34 +00:00
move the #ifdef HAVE_XINERAMA to enclose the whole function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26438 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d48f39e68c
commit
f5ccd50211
@ -367,12 +367,12 @@ static void init_atoms(void)
|
||||
}
|
||||
|
||||
void update_xinerama_info(void) {
|
||||
#ifdef HAVE_XINERAMA
|
||||
int screen = xinerama_screen;
|
||||
// center coordinates of the window
|
||||
int x = vo_dx + vo_dwidth / 2;
|
||||
int y = vo_dy + vo_dheight / 2;
|
||||
xinerama_x = xinerama_y = 0;
|
||||
#ifdef HAVE_XINERAMA
|
||||
if (screen >= -1 && XineramaIsActive(mDisplay))
|
||||
{
|
||||
XineramaScreenInfo *screens;
|
||||
|
Loading…
Reference in New Issue
Block a user