mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-07 07:21:01 +00:00
- fixed: changing 'uiscale' did not always update the screen size properly.
This commit is contained in:
parent
69e7bb57d4
commit
dae83f989b
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,8 @@
|
||||||
#include "textures.h"
|
#include "textures.h"
|
||||||
#include "vm.h"
|
#include "vm.h"
|
||||||
|
|
||||||
|
EXTERN_CVAR(Int, screenblocks)
|
||||||
|
|
||||||
CUSTOM_CVAR(Int, uiscale, 0, CVAR_ARCHIVE | CVAR_NOINITCALL)
|
CUSTOM_CVAR(Int, uiscale, 0, CVAR_ARCHIVE | CVAR_NOINITCALL)
|
||||||
{
|
{
|
||||||
if (self < 0)
|
if (self < 0)
|
||||||
|
@ -75,6 +77,7 @@ CUSTOM_CVAR(Int, uiscale, 0, CVAR_ARCHIVE | CVAR_NOINITCALL)
|
||||||
{
|
{
|
||||||
StatusBar->CallScreenSizeChanged();
|
StatusBar->CallScreenSizeChanged();
|
||||||
}
|
}
|
||||||
|
R_SetViewSize(screenblocks);
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetUIScale(int altval)
|
int GetUIScale(int altval)
|
||||||
|
|
Loading…
Reference in a new issue