Преглед изворни кода

Merge pull request #1252 from BeamNG/fix_alt_enter

Fix bug on DefineConsoleMethod GuiCanvas::setVideoMode.
Luis Anton Rebollo пре 10 година
родитељ
комит
24307947ef
1 измењених фајлова са 1 додато и 1 уклоњено
  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)