]> git.lizzy.rs Git - minetest.git/commitdiff
Fix font_size under windows
authorBlockMen <nmuelll@web.de>
Sat, 14 Feb 2015 19:16:09 +0000 (20:16 +0100)
committerBlockMen <nmuelll@web.de>
Wed, 18 Feb 2015 11:59:07 +0000 (12:59 +0100)
src/constants.h

index 9a7bb9d86215d66ac140d429542443c5b511e828..53a2608bde10e15c325f1465935c04312a44a747 100644 (file)
@@ -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