Fixed: #980 Create a setScreenMode method in OpenGL driver

This commit is contained in:
kervala 2010-06-12 17:57:07 +02:00
parent 9f13de0d2a
commit 2fb7d87cd2

View file

@ -926,7 +926,7 @@ bool CDriverGL::setScreenMode(const GfxMode &mode)
for (int i = 0; i < nmodes; i++) for (int i = 0; i < nmodes; i++)
{ {
nldebug("3D: Available mode - %dx%d", modes[i]->hdisplay, modes[i]->vdisplay); 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])) if (XF86VidModeSwitchToMode(_dpy, DefaultScreen(_dpy), modes[i]))
{ {