mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 09:16:18 +00:00
Fixed: #928 XRandR modesetting
This commit is contained in:
parent
68e135e4d1
commit
466342a241
1 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@ bool CDriverGL::init (uint windowIcon, emptyProc exitFunc)
|
||||||
if (XF86VidModeQueryExtension(_dpy, &event, &error) && XF86VidModeQueryVersion(_dpy, &vm_major, &vm_minor))
|
if (XF86VidModeQueryExtension(_dpy, &event, &error) && XF86VidModeQueryVersion(_dpy, &vm_major, &vm_minor))
|
||||||
{
|
{
|
||||||
_xvidmode_version = vm_major * 100 + vm_minor;
|
_xvidmode_version = vm_major * 100 + vm_minor;
|
||||||
nlinfo("3D: XF86VidMode %d.%d found", major, minor);
|
nlinfo("3D: XF86VidMode %d.%d found", vm_major, vm_minor);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -991,7 +991,7 @@ bool CDriverGL::setScreenMode(const GfxMode &mode)
|
||||||
if (screen_config)
|
if (screen_config)
|
||||||
{
|
{
|
||||||
Rotation saved_rotation;
|
Rotation saved_rotation;
|
||||||
SizeID size = XRRConfigCurrentConfiguration(screen_config, &saved_rotation);
|
SizeID cur_size = XRRConfigCurrentConfiguration(screen_config, &saved_rotation);
|
||||||
|
|
||||||
sint nsizes;
|
sint nsizes;
|
||||||
XRRScreenSize *sizes = XRRConfigSizes(screen_config, &nsizes);
|
XRRScreenSize *sizes = XRRConfigSizes(screen_config, &nsizes);
|
||||||
|
|
Loading…
Reference in a new issue