cnc-ddraw icon indicating copy to clipboard operation
cnc-ddraw copied to clipboard

DPI scaling issue with Tiberian Sun

Open Crimsonum opened this issue 2 years ago • 2 comments

I've had this issue for a while where, when using high DPI scaling on Windows, the game sometimes won't go fullscreen, instead it just minimizes. I have a UHD display so I use 150% DPI scaling by default, and run the game on fullscreen mode, usually in 1280x720 resolution (game resolution doesn't affect the issue though).

This bug happens in "sessions": when the problem appears, it usually persists until I reboot Windows, or if I revert to no (100%) scaling. It doesn't occur during every Windows session though, for some reason.

Crimsonum avatar Jun 08 '22 19:06 Crimsonum

try this. Or something in compatibility DPI app options. https://thegeekpage.com/disable-display-scaling-on-high-dpi-settings/ change-high-DPI-settings-min over-ride-application-min

Mitradis avatar Jun 09 '22 10:06 Mitradis

Could you generate me a debug log please? Link: https://github.com/CnCNet/cnc-ddraw/issues/44

FunkyFr3sh avatar Sep 05 '22 04:09 FunkyFr3sh

Can't reproduce+stale

FunkyFr3sh avatar Jul 26 '23 08:07 FunkyFr3sh

I did not notice the replies before. App-specific DPI settings don't help, I've tried it. Only reliable way is to change the Windows DPI to 100 % but I obviously can't use that all the time.

Could you generate me a debug log please? Link: #44

Download here

Crimsonum avatar Aug 16 '23 19:08 Crimsonum

Nothing unusual in it (looks about the same on my end), just that it doesn't minimize here.

I added some more logging trying to print out the name of the window that stole the focus:

ddraw.zip

FunkyFr3sh avatar Aug 17 '23 17:08 FunkyFr3sh

This may have been fixed in 5.6.0.0 as I haven't experienced it since.

Crimsonum avatar Aug 28 '23 09:08 Crimsonum