summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libw32c.cc
diff options
context:
space:
mode:
authorEnne Walker <enne.walker@gmail.com>2010-05-30 16:35:57 -0400
committerEnne Walker <enne.walker@gmail.com>2010-05-30 16:38:19 -0400
commitb0dba57802197cb0a6f3e938dcd89f17bdf1f1f7 (patch)
treee8ec146c513a3a6fb5e291d30a70069fbbc36dc8 /crawl-ref/source/libw32c.cc
parent0e290b396044e1ae661b0e70c0a3cb64d027a025 (diff)
downloadcrawl-ref-b0dba57802197cb0a6f3e938dcd89f17bdf1f1f7.tar.gz
crawl-ref-b0dba57802197cb0a6f3e938dcd89f17bdf1f1f7.zip
[1645] Fix messages_at_top drawing incorrectly.
This was due to broken logic added in 575cfb8d.
Diffstat (limited to 'crawl-ref/source/libw32c.cc')
-rw-r--r--crawl-ref/source/libw32c.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/libw32c.cc b/crawl-ref/source/libw32c.cc
index 5bdc5b4fc9..ba6ded9334 100644
--- a/crawl-ref/source/libw32c.cc
+++ b/crawl-ref/source/libw32c.cc
@@ -920,10 +920,10 @@ void puttext(int x1, int y1, const crawl_view_buffer &vbuf)
{
const screen_cell_t *cell = vbuf;
const coord_def size = vbuf.size();
- for (int y = 1; y <= size.y; ++y)
+ for (int y = 0; y < size.y; ++y)
{
- cgotoxy(x1, y);
- for (int x = 1; x <= size.x; ++x)
+ cgotoxy(x1, y1 + y);
+ for (int x = 0; x < size.x; ++x)
{
textattr(cell->colour);
putwch(cell->glyph);