From 17e4f7e93635bfa28b21ba09f652fec85ec0bcd7 Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Sun, 10 May 2026 01:58:45 -0700 Subject: [PATCH] Fixed a UI bug. --- neo/engine/ui/Window.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/neo/engine/ui/Window.cpp b/neo/engine/ui/Window.cpp index af6378db..cfd6f0ba 100644 --- a/neo/engine/ui/Window.cpp +++ b/neo/engine/ui/Window.cpp @@ -146,8 +146,13 @@ void idWindow::CommonInit() { timeLine = -1; xOffset = yOffset = 0.0f; cursor = 0; +#ifdef QUAKE4 forceAspectWidth = 640.0f; forceAspectHeight = 480.0f; +#else + forceAspectWidth = SCREEN_WIDTH; + forceAspectHeight = SCREEN_HEIGHT; +#endif matScalex = 1.0f; matScaley = 1.0f; borderSize = 0.0f; @@ -157,11 +162,9 @@ void idWindow::CommonInit() { textAlignx = 0.0f; textAligny = 0.0f; textShadow = 0; -#ifdef QUAKE4 #ifdef QUAKE4 textStyle = 0; textSpacing = 0.0f; -#endif #endif noEvents = false; rotate = 0.0f; @@ -2356,8 +2359,13 @@ void idWindow::SetInitialState(const char* _name) { name = _name; matScalex = 1.0; matScaley = 1.0; +#ifdef QUAKE4 forceAspectWidth = 640.0; forceAspectHeight = 480.0; +#else + forceAspectWidth = SCREEN_WIDTH; + forceAspectHeight = SCREEN_HEIGHT; +#endif noTime = false; visible = true; flags = 0; @@ -4510,8 +4518,13 @@ default colors, etc.. void idWindow::SetDefaults(void) { matScalex = 1.0f; matScaley = 1.0f; +#ifdef QUAKE4 forceAspectWidth = 640.0f; forceAspectHeight = 480.0f; +#else + forceAspectWidth = SCREEN_WIDTH; + forceAspectHeight = SCREEN_HEIGHT; +#endif borderSize = 0.0f; noTime = false; visible = true;