mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 06:08:42 +00:00
Changed: More verbose warnings messages for setScreenMode
This commit is contained in:
parent
f94e466039
commit
e3d2c8ce98
1 changed files with 11 additions and 4 deletions
|
@ -1356,14 +1356,21 @@ bool CDriverGL::setScreenMode(const GfxMode &mode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size > -1 && XRRSetScreenConfig(_dpy, screen_config, root, size, saved_rotation, CurrentTime) == RRSetConfigSuccess)
|
if (size > -1)
|
||||||
{
|
{
|
||||||
nlinfo("3D: Switching to XRandR mode %d: %dx%d", size, sizes[size].width, sizes[size].height);
|
if (XRRSetScreenConfig(_dpy, screen_config, root, size, saved_rotation, CurrentTime) == RRSetConfigSuccess))
|
||||||
found = true;
|
{
|
||||||
|
nlinfo("3D: Switching to XRandR mode %d: %dx%d", size, sizes[size].width, sizes[size].height);
|
||||||
|
found = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
nlwarning("3D: XRRSetScreenConfig failed for mode %d: %dx%d", size, sizes[size].width, sizes[size].height);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
nlwarning("3D: No corresponding screen mode or XRRSetScreenConfig failed");
|
nlwarning("3D: No corresponding screen mode");
|
||||||
}
|
}
|
||||||
|
|
||||||
XRRFreeScreenConfigInfo(screen_config);
|
XRRFreeScreenConfigInfo(screen_config);
|
||||||
|
|
Loading…
Reference in a new issue