gitadora: more windowed mode fixes (#819)

## Link to GitHub Issue or related Pull Request, if one exists
User reported

## Description of change

Sometimes the game moved the main window after `CreateWindowExA`
returned but before D3D initialization called
`graphics_capture_initial_window`. During this gap,
`GRAPHICS_HOOKED_WINDOW` was not set, so the placement hooks could not
identify the main window and preserve its monitor override. GITADORA
main, LEFT, and RIGHT windows are now registered immediately after
creation so later placement calls cannot undo their overrides.

This also adds `-gdwsmallsize` and `-gdwsmallpos` for explicitly setting
the SMALL window size and position. Explicit values override the
corresponding monitor-derived geometry, allowing the SMALL window's
10:16 aspect ratio to be preserved instead of stretching it to fill a
monitor.

## Testing
This commit is contained in:
bicarus
2026-07-21 00:54:09 -07:00
committed by GitHub
parent ed7318c270
commit 3f0921d983
6 changed files with 92 additions and 10 deletions
+20
View File
@@ -2644,6 +2644,26 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.category = "Game Windowed Settings",
.picker = OptionPickerType::Monitor,
},
{
// GitaDoraWindowedSmallSize
.title = "GitaDora Windowed SMALL Size",
.name = "gdwsmallsize",
.desc = "Size of the GITADORA Arena SMALL touch window. Defaults to (800,1280).",
.type = OptionType::Text,
.setting_name = "800,1280",
.game_name = "GitaDora",
.category = "Game Windowed Settings",
},
{
// GitaDoraWindowedSmallPosition
.title = "GitaDora Windowed SMALL Position",
.name = "gdwsmallpos",
.desc = "Initial position of the GITADORA Arena SMALL touch window. Defaults to (0,0).",
.type = OptionType::Text,
.setting_name = "0,0",
.game_name = "GitaDora",
.category = "Game Windowed Settings",
},
{
// spice2x_IIDXWindowedSubscreenSize
.title = "IIDX Windowed Subscreen Size",