diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-10-16 18:13:26 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-10-16 18:13:26 +0000 |
commit | beef14987b61b016b633e5a6163647639b75ab31 (patch) | |
tree | 83cec53117276897c808a2484b8eecf67f1d177c | |
parent | 2b9e1bf0facd5291e2b7f2b3af9167f1bdf85dc0 (diff) |
fixed overlay x and y calculation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27782 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_xvidix.c | 41 |
1 files changed, 3 insertions, 38 deletions
diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index 206f0228a9..704db31bde 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -124,44 +124,9 @@ static void set_window(int force_update) vo_dwidth = drwWidth; vo_dheight = drwHeight; -#ifdef CONFIG_XINERAMA - if (XineramaIsActive(mDisplay)) - { - XineramaScreenInfo *screens; - int num_screens; - int i = 0; - - screens = XineramaQueryScreens(mDisplay, &num_screens); - - /* find the screen we are on */ - while (i < num_screens && - ((screens[i].x_org < drwcX) || (screens[i].y_org < drwcY) || - (screens[i].x_org + screens[i].width >= drwcX) || - (screens[i].y_org + screens[i].height >= drwcY))) - { - i++; - } - - if (i < num_screens) - { - /* save the screen we are on */ - xinerama_screen = i; - } else - { - /* oops.. couldnt find the screen we are on - * because the upper left corner left the - * visual range. assume we are still on the - * same screen - */ - i = xinerama_screen; - } - - /* set drwcX and drwcY to the right values */ - drwcX = drwcX - screens[i].x_org; - drwcY = drwcY - screens[i].y_org; - XFree(screens); - } -#endif + update_xinerama_info(); + drwcX -= xinerama_x; + drwcY -= xinerama_y; if (vo_panscan > 0.0f && vo_fs) { |