diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-04-16 13:38:28 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-04-16 13:38:28 +0000 |
commit | 7f3d9de556dd62321991d120e89df8526a71a958 (patch) | |
tree | 95ce77e6cb5fceaf304058eddefaa2ee91afc375 /libvo/vo_gl2.c | |
parent | 79a05843eeea6326184a8cfafc649b9620a49f4c (diff) | |
download | mpv-7f3d9de556dd62321991d120e89df8526a71a958.tar.bz2 mpv-7f3d9de556dd62321991d120e89df8526a71a958.tar.xz |
Fix and improve xinerama support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18117 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl2.c')
-rw-r--r-- | libvo/vo_gl2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c index 94e946a7fc..224ecdd0d7 100644 --- a/libvo/vo_gl2.c +++ b/libvo/vo_gl2.c @@ -706,9 +706,6 @@ static int config_glx(uint32_t width, uint32_t height, uint32_t d_width, uint32_ /* Map window. */ XMapWindow(mDisplay, vo_window); -#ifdef HAVE_XINERAMA - vo_x11_xinerama_move(mDisplay,vo_window); -#endif vo_x11_sizehint( hint.x, hint.y, hint.width, hint.height,0 ); XClearWindow(mDisplay,vo_window); @@ -810,13 +807,15 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin panscan_init(); aspect_save_orig(width,height); aspect_save_prescale(d_width,d_height); - aspect_save_screenres(vo_screenwidth,vo_screenheight); + update_xinerama_info(); aspect(&d_width,&d_height,A_NOZOOM); vo_dx = (int)(vo_screenwidth - d_width) / 2; vo_dy = (int)(vo_screenheight - d_height) / 2; geometry(&vo_dx, &vo_dy, &d_width, &d_height, vo_screenwidth, vo_screenheight); + vo_dx += xinerama_x; + vo_dy += xinerama_y; #if defined(HAVE_NEW_GUI) && !defined(GL_WIN32) if (use_gui) { |