summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-11 15:27:22 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-11 16:18:08 +0100
commit80d8b3a8cd611e5f695f4a13c8a3262bf0ac2ddb (patch)
tree9a76954ba59c348b5eac6ec44cafa9e604b97e18 /crawl-ref/source/tilereg.cc
parente31ea7d79da677a7cb752d863cdb8f2942984b4f (diff)
downloadcrawl-ref-80d8b3a8cd611e5f695f4a13c8a3262bf0ac2ddb.tar.gz
crawl-ref-80d8b3a8cd611e5f695f4a13c8a3262bf0ac2ddb.zip
Experimentally always draw tile names in the inventory header line.
Used to be always one line above the tile in question but with the background this can be sometimes hard to see. Also, I found it difficult to compare names with them always being centered on the tiles. Feedback welcome!
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r--crawl-ref/source/tilereg.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index 9641cbb141..97e491d2f7 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -2174,8 +2174,9 @@ void InventoryRegion::render()
bool floor = m_items[curs_index].flag & TILEI_FLAG_FLOOR;
- int x = m_cursor.x * dx + sx + ox + dx / 2;
- int y = m_cursor.y * dy + sy + oy;
+ // Always draw the description in the inventory header. (jpeg)
+ int x = sx + ox + dx / 2;
+ int y = sy + oy;
const coord_def min_pos(sx, sy - dy);
const coord_def max_pos(ex, ey);