zzattack / ccmaps-net

Maps renderer for several Command & Conquer games
GNU General Public License v3.0
58 stars 25 forks source link

[BUG] Application switches DPI during map rendering. #39

Open CnC-RaVaGe opened 4 years ago

CnC-RaVaGe commented 4 years ago

When rendering a map the application switches to 100% DPI scaling on its UI, even though the scaling of the OS is set to another value (125%) and the application is started at this scaling. This occurs at about 4/10 times when rendering a map.

Starkku commented 3 years ago

This has most likely been fixed in 8fc5646b4eee93761bcd8d5c8292313aef91e7c3. Previously, the renderer GUI application was DPI unaware and would render at fixed 100% DPI with the possibility of being stretched to fit. This issue was probably it being stretched like that (a tell-tale sign would be the blurry appearance) and it reverting at some point due to the UI being updated / refreshed, for whatever reason. After enabling the DPI awareness the UI should now scale properly based on the DPI setting.