gitadora: (arena model) fix window settings not working (#494)

## Link to GitHub Issue, if one exists
#477 

## Description of change
F11 menu (window settings) did not work for arena model because the game
engine races to create many windows, so our logic of grabbing the first
window created doesn't always get the main window.

## Testing
This commit is contained in:
bicarus
2026-01-02 15:07:32 -08:00
committed by GitHub
parent cf59ae5f89
commit 7a1f46d1be
5 changed files with 53 additions and 4 deletions
@@ -27,6 +27,11 @@ namespace overlay::windows {
}
HWND ScreenResize::get_first_window() {
// hack for gitadora arena model which races to create many windows
// so [0] is not always the main one
if (GRAPHICS_WINDOW_MAIN.has_value()) {
return GRAPHICS_WINDOW_MAIN.value();
}
if (GRAPHICS_WINDOWS.size() == 0) {
return NULL;
}