1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Implement DPI scaling for Windows (#9586)

This commit is contained in:
sfan5
2020-04-11 20:03:59 +02:00
committed by GitHub
parent 5cc06e4748
commit 40df3931d8
5 changed files with 69 additions and 25 deletions

View File

@@ -110,10 +110,5 @@ with this program; if not, write to the Free Software Foundation, Inc.,
GUI related things
*/
// TODO: implement dpi-based scaling for windows and remove this hack
#if defined(_WIN32)
#define TTF_DEFAULT_FONT_SIZE (18)
#else
#define TTF_DEFAULT_FONT_SIZE (16)
#endif
#define DEFAULT_FONT_SIZE (10)