Explorar o código

Fix bug on DefineConsoleMethod GuiCanvas::setVideoMode.

LuisAntonRebollo %!s(int64=10) %!d(string=hai) anos
pai
achega
17f08e9f86
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Engine/source/gui/core/guiCanvas.cpp

+ 1 - 1
Engine/source/gui/core/guiCanvas.cpp

@@ -2723,7 +2723,7 @@ DefineConsoleMethod( GuiCanvas, setVideoMode, void,
    // aren't specified, just leave them at whatever they were set to.
    if (bitDepth > 0)
    {
-      vm.bitDepth = refreshRate;
+      vm.bitDepth = bitDepth;
    }
 
    if (refreshRate > 0)