From 17f08e9f86a85f25f9a898fcabfa400d71b0160e Mon Sep 17 00:00:00 2001 From: LuisAntonRebollo Date: Sat, 14 Mar 2015 13:01:05 +0100 Subject: [PATCH] Fix bug on DefineConsoleMethod GuiCanvas::setVideoMode. --- Engine/source/gui/core/guiCanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/gui/core/guiCanvas.cpp b/Engine/source/gui/core/guiCanvas.cpp index 4dba87310..513a82e9f 100644 --- a/Engine/source/gui/core/guiCanvas.cpp +++ b/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)