mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-03 07:10:42 -07:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user