atsb / Doom64EX-Plus

An improved modern version of Doom64EX.
GNU General Public License v2.0
100 stars 16 forks source link

Fix console font scaling on HiDpi displays #230

Closed bubbleguuum closed 4 months ago

bubbleguuum commented 4 months ago

This uses the new SDL_GetDisplayContentScale API to retrieve the scale factor of the window (for example 250% scaling set in the OS results in display scale = 2.5f) and apply it to console scaling. This fixes console font being very hard to read on Hi-Dpi displays.

bubbleguuum commented 4 months ago

The global display_scale variable can also be used in other parts of the code if that would be useful.

Wolf3s commented 4 months ago

Why did you close it?

bubbleguuum commented 4 months ago

Silly user error as I deleted the branch. That I restored and resubmitted.