mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-12 08:11:10 +02:00
Fixed a UI bug.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user