mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01: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:
parent
7126a56170
commit
f02eeb7172
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user