diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/x11_common.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index d5ab2db3b5..fc8909769a 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -66,9 +66,9 @@ int xinerama_screen = 0; int xinerama_x = 0; int xinerama_y = 0; #endif - #ifdef HAVE_XF86VM XF86VidModeModeInfo **vidmodes=NULL; +XF86VidModeModeLine modeline; #endif void vo_hidecursor ( Display *disp , Window win ) @@ -215,6 +215,14 @@ int vo_init( void ) } else #endif +#ifdef HAVE_XF86VM + { + int clock; + XF86VidModeGetModeLine( mDisplay,mScreen,&clock ,&modeline ); + if ( !vo_screenwidth ) vo_screenwidth=modeline.hdisplay; + if ( !vo_screenheight ) vo_screenheight=modeline.vdisplay; + } +#endif { if (! vo_screenwidth) vo_screenwidth=DisplayWidth( mDisplay,mScreen ); |