From 34e58b7f1903ae229b468c1676cdf9bbc3ae368a Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 12 Jul 2010 23:02:55 +0200 Subject: [PATCH] Fixed: #928 XRandR modesetting --- code/nel/src/3d/driver/opengl/driver_opengl_window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 a9e102dc1..acc84ef13 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -224,7 +224,7 @@ bool CDriverGL::init (uint windowIcon, emptyProc exitFunc) if (XF86VidModeQueryExtension(_dpy, &event, &error) && XF86VidModeQueryVersion(_dpy, &vm_major, &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 @@ -991,7 +991,7 @@ bool CDriverGL::setScreenMode(const GfxMode &mode) if (screen_config) { Rotation saved_rotation; - SizeID size = XRRConfigCurrentConfiguration(screen_config, &saved_rotation); + SizeID cur_size = XRRConfigCurrentConfiguration(screen_config, &saved_rotation); sint nsizes; XRRScreenSize *sizes = XRRConfigSizes(screen_config, &nsizes);