From dae83f989be4d05f8b248f87b779867d76e96eeb Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sat, 19 Aug 2017 05:07:31 -0400 Subject: [PATCH] - fixed: changing 'uiscale' did not always update the screen size properly. --- src/v_draw.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/v_draw.cpp b/src/v_draw.cpp index 2377e8f7d..cc8ceb7f4 100644 --- a/src/v_draw.cpp +++ b/src/v_draw.cpp @@ -64,6 +64,8 @@ #include "textures.h" #include "vm.h" +EXTERN_CVAR(Int, screenblocks) + CUSTOM_CVAR(Int, uiscale, 0, CVAR_ARCHIVE | CVAR_NOINITCALL) { if (self < 0) @@ -75,6 +77,7 @@ CUSTOM_CVAR(Int, uiscale, 0, CVAR_ARCHIVE | CVAR_NOINITCALL) { StatusBar->CallScreenSizeChanged(); } + R_SetViewSize(screenblocks); } int GetUIScale(int altval)