Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL2 needs high-DPI/Retina support #18

Open
wmcbrine opened this issue Jan 16, 2018 · 6 comments
Open

SDL2 needs high-DPI/Retina support #18

wmcbrine opened this issue Jan 16, 2018 · 6 comments

Comments

@wmcbrine
Copy link
Owner

This is a high priority for me.

@GitMensch
Copy link
Contributor

With #61 fixed - is this still an issue?

@wmcbrine
Copy link
Owner Author

wmcbrine commented Jun 21, 2021

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.

@GitMensch
Copy link
Contributor

Would it be as easy as dosbox-staging/dosbox-staging@1a289f5 ?

@wmcbrine
Copy link
Owner Author

Sadly, it would not.

@dylanetaft
Copy link

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.

@dylanetaft
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants