diff options
author | BlockMen <nmuelll@web.de> | 2015-02-14 20:16:09 +0100 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2015-02-18 12:39:23 +0100 |
commit | 9a9fcfc9a302227d60c108d048d86b9d77cf24b1 (patch) | |
tree | 6fa482fbfa6a38c68ac81a9d8b7ecf794f1f5540 /src | |
parent | 4d744cf87ad1cd108d125c58559cef4316e80a70 (diff) | |
download | minetest-9a9fcfc9a302227d60c108d048d86b9d77cf24b1.tar.gz minetest-9a9fcfc9a302227d60c108d048d86b9d77cf24b1.tar.bz2 minetest-9a9fcfc9a302227d60c108d048d86b9d77cf24b1.zip |
Fix font_size under windows
Diffstat (limited to 'src')
-rw-r--r-- | src/constants.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/constants.h b/src/constants.h index 9a7bb9d86..53a2608bd 100644 --- a/src/constants.h +++ b/src/constants.h @@ -100,7 +100,13 @@ with this program; if not, write to the Free Software Foundation, Inc., /* GUI related things */ -#define TTF_DEFAULT_FONT_SIZE (14) + +// 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 (14) +#endif #define DEFAULT_FONT_SIZE (10) #endif |