Fixed a UI bug.

This commit is contained in:
Justin Marshall
2026-05-10 01:58:45 -07:00
parent 74dbe3d933
commit 17e4f7e936
+15 -2
View File
@@ -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;