Fix bug on DefineConsoleMethod GuiCanvas::setVideoMode.

This commit is contained in:
LuisAntonRebollo 2015-03-14 13:01:05 +01:00
parent 3c12325e97
commit 17f08e9f86

View file

@ -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)