summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fontwrapper-ft.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-01 02:22:04 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-01 02:23:15 +0200
commitf79dc8e539c9217bc918c026ce3bdbb2cf20dde4 (patch)
tree966f11aaa53cb99b59c7a0c3114dcce9644de74e /crawl-ref/source/fontwrapper-ft.cc
parentb06106206de2922369122e7b0f4c3908ac960175 (diff)
downloadcrawl-ref-f79dc8e539c9217bc918c026ce3bdbb2cf20dde4.tar.gz
crawl-ref-f79dc8e539c9217bc918c026ce3bdbb2cf20dde4.zip
Fix droppings of old glyphs appearing on a new glyph's edges.
Diffstat (limited to 'crawl-ref/source/fontwrapper-ft.cc')
-rw-r--r--crawl-ref/source/fontwrapper-ft.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/fontwrapper-ft.cc b/crawl-ref/source/fontwrapper-ft.cc
index 1659b71d47..32cffc767e 100644
--- a/crawl-ref/source/fontwrapper-ft.cc
+++ b/crawl-ref/source/fontwrapper-ft.cc
@@ -253,8 +253,8 @@ ucs_t FTFontWrapper::map_unicode(ucs_t uchar, bool update)
if (m_glyphs_top == MAX_GLYPHS)
{
// blank out above char if it's been replaced
- for (int x = 0; x < bmp->width; x++)
- for (int y = 0; y < bmp->rows; y++)
+ for (int x = 0; x < charsz.x; x++)
+ for (int y = 0; y < charsz.y; y++)
{
unsigned int idx = offset_x + x + (offset_y + y - vert_offset) * m_ft_width;
idx *= 4;