From 2fb7d87cd2d5c9ee89640d3065580b3b0e2f135f Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 12 Jun 2010 17:57:07 +0200 Subject: [PATCH] Fixed: #980 Create a setScreenMode method in OpenGL driver --- code/nel/src/3d/driver/opengl/driver_opengl_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp index 0bebc841f..8e446a394 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -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])) {