diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-29 20:16:35 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-29 21:00:20 +0100 |
commit | 8963333ffd03d1b0112628ad9ae0fdd577a55f4d (patch) | |
tree | f36803e4130444e1d49236f206da385e5b040e9c /crawl-ref/source/viewgeom.cc | |
parent | 5572f37c06b272a4b3e18ec8adb19c74d44c2b4c (diff) | |
download | crawl-ref-8963333ffd03d1b0112628ad9ae0fdd577a55f4d.tar.gz crawl-ref-8963333ffd03d1b0112628ad9ae0fdd577a55f4d.zip |
Allow the message window to use the bottom right terminal position.
This was causing scrolling problems, but now that scrolling is off,
this shouldn't occur anymore.
For reference, if problems with writing to the bottom right corner
of the terminal show up:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=311345
Diffstat (limited to 'crawl-ref/source/viewgeom.cc')
-rw-r--r-- | crawl-ref/source/viewgeom.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/viewgeom.cc b/crawl-ref/source/viewgeom.cc index 0ee155b3cc..7c2c2bd156 100644 --- a/crawl-ref/source/viewgeom.cc +++ b/crawl-ref/source/viewgeom.cc @@ -58,9 +58,6 @@ class _layout ASSERT( (msgp+msgsz - termp).x <= termsz.x ); ASSERT( (msgp+msgsz - termp).y <= termsz.y ); - // Don't stretch message all the way to the bottom-right - // character; it causes scrolling and badness. - ASSERT( (msgp+msgsz - termp) != termsz ); ASSERT( (mlistp+mlistsz-termp).x <= termsz.x ); ASSERT( (mlistp+mlistsz-termp).y <= termsz.y ); @@ -106,7 +103,7 @@ class _inline_layout : public _layout _increment(mlistsz.x, leftover_x(), MLIST_MAX_WIDTH); _increment(hud_gutter, leftover_x(), HUD_MAX_GUTTER); _increment(mlistsz.x, leftover_x(), INT_MAX); - msgsz.x = termsz.x-1; // Can't use last character. + msgsz.x = termsz.x; // y: View gets as much as it wants. // mlist tries to get at least its minimum. |