summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-30 07:53:15 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-30 07:53:15 +0000
commit6f5bda0a4546297361756ae584f119ed9f5f73b4 (patch)
treeb36680ed37db448fb97cb3909014e5e326db5968
parentba5f5da04260e618a1ed4abe0939cedb84525d92 (diff)
downloadcrawl-ref-6f5bda0a4546297361756ae584f119ed9f5f73b4.tar.gz
crawl-ref-6f5bda0a4546297361756ae584f119ed9f5f73b4.zip
Fix: mlistsz was 2 columns too small... stupid 1-based indices :-/
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3949 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 3acbe87da6..5bd2a3b22f 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -5029,7 +5029,7 @@ void crawl_view_geometry::init_geometry()
int len = 1 + viewsz.y - mlistp.y;
len = std::max(len, Options.mlist_min_height);
len = std::min(len, 1 + termsz.y - message_min_lines - (hudp.y + hudsz.y));
- mlistsz = coord_def(termsz.x - mlistp.x - 1, len);
+ mlistsz = coord_def(termsz.x - (mlistp.x - 1), len);
// The message pane takes all lines not used by the viewport and
// the mlist.