popn: allow game to launch on PCs with only one monitor (#633)

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

## Description of change
The game insists on having two monitors. Hook various DX9 and Win32
monitor APIs to fake a monitor if the user only has one. This correctly
convinces the game that it needs to draw two screens instead of just
one.

## Testing
WIP
This commit is contained in:
bicarus
2026-04-13 03:00:47 -07:00
committed by GitHub
parent 440b9ed749
commit 2042b629e9
5 changed files with 214 additions and 10 deletions
+1 -1
View File
@@ -559,7 +559,7 @@ namespace sysutils {
// if there is one preferred by the user, use this one, and hide others
log_info(
"sysutils",
"returning second monitor, {} @ index {} (-sysutilssubmonitor)",
"returning second monitor, {} @ index {} (-iidxsubmonitor / -sdvxsubmonitor)",
lpDisplayDevice->DeviceName,
iDevNum);
return result_orig;