summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-13 11:12:24 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-13 11:12:24 +0000
commitf5ccd50211543c34c7306b298795b649d825d01b (patch)
treebd6e0e7f5e73f36a35f9be6ef80d8c6e3bd6d711 /libvo
parentd48f39e68c4f22d8f0b58bc8cc38f806ba8f5dd6 (diff)
downloadmpv-f5ccd50211543c34c7306b298795b649d825d01b.tar.bz2
mpv-f5ccd50211543c34c7306b298795b649d825d01b.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 205fa2987d..7145aaf537 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -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;