Open skejeton opened 5 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
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.
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:
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.
Currently (at least on Windows) if you have a High-DPI display, everything will appear blurry because the DPI scaling isn't handled properly.