From 80d8b3a8cd611e5f695f4a13c8a3262bf0ac2ddb Mon Sep 17 00:00:00 2001 From: Johanna Ploog Date: Mon, 11 Jan 2010 15:27:22 +0100 Subject: 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! --- crawl-ref/source/tilereg.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/tilereg.cc') 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); -- cgit v1.2.3-54-g00ecf