SolarLune / masterplan

MasterPlan is a project management software / visual idea board software. It attempts to be easy to use, lightweight, and fun.
https://solarlune.itch.io/masterplan
509 stars 46 forks source link

DPI scaling. #96

Open skejeton opened 5 months ago

skejeton commented 5 months ago

Currently (at least on Windows) if you have a High-DPI display, everything will appear blurry because the DPI scaling isn't handled properly.

johntringham commented 4 months ago

I've just made a PR that fixes the blurry text issue - it's not directly High-DPI related but could help your situation

https://github.com/SolarLune/masterplan/pull/97

skejeton commented 4 months ago

Thank you! It's a step further. The main thing I need for myself is just to enable DPI awareness switch in the code (WinAPI call SetProcessDpiAwareness, similar things for other platforms). Since this is using SDL I think there's a cross platform function for that.

But I'm on Windows and this program uses go-sdl, and I spent a lot of time trying to build it but in the end it took me a lot of time, and I gave up after I needed to compile SDL_gfx for mingw myself, since it's a 3rd party library.

johntringham commented 4 months ago

Ah ok I understand. Not sure if you've tried this, but if its not easy to change in code, there's a possible workaround by bypassing some of Windows' high DPI scaling stuff via the .exe's properties window, which has resolved some DPI issues for me in the past:

image

Its not perfect, because the app still won't be "aware" of the current DPI and so will render at the same pixel-based size when you switch from a low-DPI monitor to a high-DPI one, but at least it should stop Windows making the app appear blurry.