mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user