mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-18 05:11:42 +00:00
Fixed: #980 Create a setScreenMode method in OpenGL driver
This commit is contained in:
parent
c6fefbcc4c
commit
52fec0acff
1 changed files with 1 additions and 1 deletions
|
@ -926,7 +926,7 @@ bool CDriverGL::setScreenMode(const GfxMode &mode)
|
|||
for (int i = 0; i < nmodes; i++)
|
||||
{
|
||||
nldebug("3D: Available mode - %dx%d", modes[i]->hdisplay, modes[i]->vdisplay);
|
||||
if (modes[i]->hdisplay == width && modes[i]->vdisplay == height)
|
||||
if (modes[i]->hdisplay == mode.Width && modes[i]->vdisplay == mode.Height)
|
||||
{
|
||||
if (XF86VidModeSwitchToMode(_dpy, DefaultScreen(_dpy), modes[i]))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue