From 7e2139e2bdcd06be2dc8edd967310c4323279c7d Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 21 Nov 2010 22:16:33 +0100 Subject: [PATCH] Changed: #825 Remove all warnings when compiling Ryzom --- code/nel/src/3d/driver/opengl/driver_opengl_window.cpp | 3 +-- 1 file changed, 1 insertion(+), 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 6c05a14f8..d59431cdd 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -610,7 +610,7 @@ bool CDriverGL::setDisplay(nlWindow wnd, const GfxMode &mode, bool show, bool re _pfd.nVersion = 1; _pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; _pfd.iPixelType = PFD_TYPE_RGBA; - _pfd.cColorBits = (char)_CurrentMode.Depth; + _pfd.cColorBits = _CurrentMode.Depth; // Choose best suited Depth Buffer. if(_CurrentMode.Depth<=16) @@ -2257,7 +2257,6 @@ void CDriverGL::showWindow(bool show) if (show) { -// XMapWindow(_dpy, _win); XMapRaised(_dpy, _win); // fix window position if windows manager want to impose them