projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d744cf
)
Fix font_size under windows
author
BlockMen
<nmuelll@web.de>
Sat, 14 Feb 2015 19:16:09 +0000
(20:16 +0100)
committer
BlockMen
<nmuelll@web.de>
Wed, 18 Feb 2015 11:39:23 +0000
(12:39 +0100)
src/constants.h
patch
|
blob
|
history
diff --git
a/src/constants.h
b/src/constants.h
index 9a7bb9d86215d66ac140d429542443c5b511e828..53a2608bde10e15c325f1465935c04312a44a747 100644
(file)
--- 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