mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
detect screen resolution as in x11_common.c
Patch by Philippe Dumont (dumont (at) lifl (dot) fr) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12575 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a68cbb44ef
commit
29ceaab8b4
16
Gui/wm/ws.c
16
Gui/wm/ws.c
@ -38,6 +38,10 @@
|
||||
#include <X11/extensions/Xinerama.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_XF86VM
|
||||
#include <X11/extensions/xf86vmode.h>
|
||||
#endif
|
||||
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/shm.h>
|
||||
|
||||
@ -248,10 +252,22 @@ wsXDNDInitialize();
|
||||
XFree(screens);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#ifdef HAVE_XF86VM
|
||||
{
|
||||
int clock;
|
||||
XF86VidModeModeLine modeline;
|
||||
|
||||
XF86VidModeGetModeLine( wsDisplay,wsScreen,&clock ,&modeline );
|
||||
wsMaxX=modeline.hdisplay;
|
||||
wsMaxY=modeline.vdisplay;
|
||||
}
|
||||
#endif
|
||||
{
|
||||
wsOrgX = wsOrgY = 0;
|
||||
if ( !wsMaxX )
|
||||
wsMaxX=DisplayWidth( wsDisplay,wsScreen );
|
||||
if ( !wsMaxY )
|
||||
wsMaxY=DisplayHeight( wsDisplay,wsScreen );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user