mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-21 10:15:55 +08:00
-screenw/h patch by Tomi.Ollila@sonera.com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2365 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
+4
-2
@@ -151,8 +151,10 @@ int vo_init( void )
|
||||
else
|
||||
#endif
|
||||
{
|
||||
vo_screenwidth=DisplayWidth( mDisplay,mScreen );
|
||||
vo_screenheight=DisplayHeight( mDisplay,mScreen );
|
||||
if (! vo_screenwidth)
|
||||
vo_screenwidth=DisplayWidth( mDisplay,mScreen );
|
||||
if (! vo_screenheight)
|
||||
vo_screenheight=DisplayHeight( mDisplay,mScreen );
|
||||
}
|
||||
// get color depth (from root window, or the best visual):
|
||||
XGetWindowAttributes(mDisplay, mRootWin, &attribs);
|
||||
|
||||
Reference in New Issue
Block a user