summaryrefslogtreecommitdiff
path: root/src/constants.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-06-14 11:22:09 +0200
committersapier <Sapier at GMX dot net>2014-06-22 00:08:55 +0200
commitd4245e6cac58a57ad2498eee2c17e851f3292296 (patch)
tree9e3988d50bf69aa1eaff97cfbedffe23f36a2b9b /src/constants.h
parenta0097c6bfab026d5655ef7a9ba127cb90a80798c (diff)
downloadminetest-d4245e6cac58a57ad2498eee2c17e851f3292296.tar.gz
minetest-d4245e6cac58a57ad2498eee2c17e851f3292296.tar.bz2
minetest-d4245e6cac58a57ad2498eee2c17e851f3292296.zip
Support for scalable font and gui elements
Fix positioning of tabheader in order to be usable for scaling GUIs WARNING: this changes position of current tabheaders, mods have to adjust!
Diffstat (limited to 'src/constants.h')
-rw-r--r--src/constants.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/constants.h b/src/constants.h
index 8c478ac6a..53ef1801e 100644
--- a/src/constants.h
+++ b/src/constants.h
@@ -89,5 +89,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
// Maximum hit points of a player
#define PLAYER_MAX_HP 20
+/*
+ * GUI related things
+ */
+#define LEGACY_SCALING (2./3.)
+#define DEFAULT_FONT_SIZE (13.0 / LEGACY_SCALING)
+#define DEFAULT_IMGSIZE (48.0)
+#define DEFAULT_XSPACING ((15.0 + (1.0 / 3.0)))
+#define DEFAULT_YSPACING (9.0)
+
#endif