iidx: hide tdj sub screen in fullscreen single monitor mode (#829)

## Link to GitHub Issue or related Pull Request, if one exists
n/a

## Description of change
Prevent the game from launching a blank window when launching fullscreen
with sub disabled.

## Testing
This commit is contained in:
bicarus
2026-07-22 14:37:29 -07:00
committed by GitHub
parent 00c8bb8ce6
commit 80deb4bbbd
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -939,6 +939,13 @@ static BOOL WINAPI ShowWindow_hook(HWND hWnd, int nCmdShow) {
return true; return true;
} }
if (games::iidx::TDJ_MODE &&
GRAPHICS_PREVENT_SECONDARY_WINDOWS &&
hWnd == TDJ_SUBSCREEN_WINDOW) {
log_info("graphics", "ShowWindow_hook - hiding sub window {}", fmt::ptr(hWnd));
return true;
}
// call original // call original
return ShowWindow_orig(hWnd, nCmdShow); return ShowWindow_orig(hWnd, nCmdShow);
} }
+1
View File
@@ -379,6 +379,7 @@ int main_implementation(int argc, char *argv[]) {
} }
if (options[launcher::Options::spice2x_IIDXNoSub].value_bool()) { if (options[launcher::Options::spice2x_IIDXNoSub].value_bool()) {
GRAPHICS_FORCE_SINGLE_ADAPTER = true; GRAPHICS_FORCE_SINGLE_ADAPTER = true;
GRAPHICS_PREVENT_SECONDARY_WINDOWS = true;
} }
if (options[launcher::Options::spice2x_SDVXNoSub].value_bool()) { if (options[launcher::Options::spice2x_SDVXNoSub].value_bool()) {
GRAPHICS_FORCE_SINGLE_ADAPTER = true; GRAPHICS_FORCE_SINGLE_ADAPTER = true;