summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/viewgeom.cc
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2014-05-01 15:56:18 +0200
committerFlorian Diebold <flodiebold@gmail.com>2014-05-01 15:56:18 +0200
commitfef1ba5491706992694484ecd1cf3d17217b5a92 (patch)
tree0288659cc3e26778adf102688988e100cbe28072 /crawl-ref/source/viewgeom.cc
parentbe87aab2ab7933555371415f8dc61ca6e9b1c590 (diff)
downloadcrawl-ref-fef1ba5491706992694484ecd1cf3d17217b5a92.tar.gz
crawl-ref-fef1ba5491706992694484ecd1cf3d17217b5a92.zip
Increase hardcoded message window height in Webtiles to 6.
This coincides with the actual client-side height and still fits into 24 lines. Of course, this still needs a more permanent solution.
Diffstat (limited to 'crawl-ref/source/viewgeom.cc')
-rw-r--r--crawl-ref/source/viewgeom.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/viewgeom.cc b/crawl-ref/source/viewgeom.cc
index cf71ecdb8c..1bbe192979 100644
--- a/crawl-ref/source/viewgeom.cc
+++ b/crawl-ref/source/viewgeom.cc
@@ -26,6 +26,10 @@
#define HUD_MIN_GUTTER 2
#define HUD_MAX_GUTTER 4
+// HACK: hardcoded message window height for webtiles
+// needs to fit into 24 lines!
+#define WEBTILES_MSG_MIN_HEIGHT 6
+
// Helper for layouts. Tries to increment lvalue without overflowing it.
static void _increment(int& lvalue, int delta, int max_value)
{
@@ -36,7 +40,7 @@ static int _msg_min_height()
{
#ifdef USE_TILE_WEB
if (tiles.is_controlled_from_web())
- return MSG_MIN_HEIGHT;
+ return WEBTILES_MSG_MIN_HEIGHT;
else
#endif
return Options.msg_min_height;