PDCurses
PDCurses copied to clipboard
SDL2 needs high-DPI/Retina support
This is a high priority for me.
With #61 fixed - is this still an issue?
Yes, this has nothing to do with #61. Much deeper stuff.
Essentially, it's the difference between fuzzy fonts (what we have) and sharp (what we would have with high-DPI support), on a high-DPI display.
Would it be as easy as https://github.com/dosbox-staging/dosbox-staging/commit/1a289f5cd4e676937e861f7657a5162b695968ba ?
Sadly, it would not.
Just create your SDL_Surface for the screen and SDL_Window outside pdcurses and scale the SDL_Surface by a whole number. You can also choose a filter method.
Was looking at the code. If you are using TTF fonts, just set the env variable PDC_FONT_SIZE. While not tested, it looks like you could also extern pdc_font_size and set it in your code too, it is in the global namespace.
Hidpi for bitmap fonts doesn't really make sense, you can scale without blurring though.
Otherwise looks like font size can be set. Granted, there's no way it can change dynamically looking at a glance.