Skip to content

Commit

Permalink
UILetterboxing: don't letterbox on GOAL screen
Browse files Browse the repository at this point in the history
  • Loading branch information
emoose committed Jul 5, 2024
1 parent 617240f commit ab4d0ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/hooks_uiscaling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,12 @@ class UILetterboxing : public Hook
VertexBuf->Unlock();
}

bool isInGame = *Game::current_mode == GameState::STATE_GAME ||
bool isInGame =
*Game::current_mode == GameState::STATE_GAME ||
*Game::current_mode == GameState::STATE_GOAL ||
*Game::current_mode == GameState::STATE_TIMEUP ||
*Game::current_mode == GameState::STATE_TRYAGAIN ||
*Game::current_mode == GameState::STATE_OUTRUNMILES ||
*Game::current_mode == GameState::STATE_SMPAUSEMENU ||
(*Game::current_mode == GameState::STATE_START && *Game::game_start_progress_code == 65);

Expand Down
2 changes: 1 addition & 1 deletion src/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#define MODULE_VERSION_MAJOR 0
#define MODULE_VERSION_MINOR 4
#define MODULE_VERSION_BUILD 0
#define MODULE_VERSION_BUILD 1
#define MODULE_VERSION_REVISION 0

#define STR(value) #value
Expand Down

0 comments on commit ab4d0ed

Please sign in to comment.