From 72a1b48efaa33990165f6efe8b04c9b0c72f2823 Mon Sep 17 00:00:00 2001 From: ennewalker Date: Wed, 17 Sep 2008 05:15:52 +0000 Subject: Adding immediate mouseover text to inventory regions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6941 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tilefont.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/tilefont.cc') diff --git a/crawl-ref/source/tilefont.cc b/crawl-ref/source/tilefont.cc index 94cbaf8e2f..720ac7b310 100644 --- a/crawl-ref/source/tilefont.cc +++ b/crawl-ref/source/tilefont.cc @@ -496,18 +496,18 @@ void FTFont::render_string(unsigned int px, unsigned int py, // box with extra buffer to test against min_pos/max_pos window size int sx = tx - buffer; int sy = ty - buffer; - int ex = sx + wx + buffer; - int ey = sy + wy + buffer; + int ex = tx + wx + buffer; + int ey = ty + wy + buffer; if (ex > max_pos.x) tx += max_pos.x - ex; else if (sx < min_pos.x) - tx -= sx; + tx -= sx - min_pos.x; if (ey > max_pos.y) ty += max_pos.y - ey; else if (sy < min_pos.y) - ty -= sy; + ty -= sy - min_pos.y; if (box_alpha != 0) _draw_box(tx, ty, wx, wy, outline, box_colour, box_alpha); -- cgit v1.2.3-54-g00ecf