summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-08 08:21:39 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-08 08:21:39 +0000
commit06b226a27e7c8f2a9ce8928311fcdfcb7c6a2f79 (patch)
treef3cb950b964ef462da926330e80af3831a99a25f /crawl-ref/source/output.cc
parentc2828b086fcebd014d25b64a34bd118db2021bd4 (diff)
downloadcrawl-ref-06b226a27e7c8f2a9ce8928311fcdfcb7c6a2f79.tar.gz
crawl-ref-06b226a27e7c8f2a9ce8928311fcdfcb7c6a2f79.zip
Fix off-by-one in weapon and quiver display
A bit of diagnosis for 1933260 (win32 build doesn't display blank characters with colored backgrounds) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4126 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index 7139e58392..fc199d1ad5 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -432,7 +432,7 @@ static void _print_stats_wp(int y)
cprintf("%s",
wpn.name(DESC_INVENTORY, true)
- .substr(0, crawl_view.hudsz.x - 5).c_str());
+ .substr(0, crawl_view.hudsz.x - 4).c_str());
textcolor(LIGHTGREY);
}
else
@@ -473,7 +473,7 @@ static void _print_stats_qv(int y)
cprintf("%s",
quiver.name(DESC_INVENTORY, true)
- .substr(0, crawl_view.hudsz.x - 5)
+ .substr(0, crawl_view.hudsz.x - 4)
.c_str());
textcolor(LIGHTGREY);
}
@@ -1093,9 +1093,10 @@ _print_next_monster_desc(const std::vector<monster_pane_info>& mons, int& start)
cprintf(" ");
textbackground(dam_color);
textcolor(dam_color);
- cprintf(" ");
- textcolor(LIGHTGREY);
+ // Temporary, to diagnose 1933260
+ cprintf("_");
textbackground(BLACK);
+ textcolor(LIGHTGREY);
cprintf(" ");
printed += 3;
}