From 4185c4afcdd58d49c33e64c6d53a7eb71d44bd1e Mon Sep 17 00:00:00 2001 From: truelight Date: Wed, 13 Jun 2007 16:04:35 +0000 Subject: (svn r10142) -Fix r10132: do something useful with the alpha channel instead of ignoring it --- src/fontcache.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fontcache.cpp') diff --git a/src/fontcache.cpp b/src/fontcache.cpp index ded1ffe72..a04936aec 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -419,6 +419,7 @@ const Sprite *GetGlyph(FontSize size, WChar key) for (x = 0; x < slot->bitmap.width; x++) { if (HASBIT(slot->bitmap.buffer[(x / 8) + y * slot->bitmap.pitch], 7 - (x % 8))) { sprite.data[1 + x + (1 + y) * sprite.width].m = SHADOW_COLOUR; + sprite.data[1 + x + (1 + y) * sprite.width].a = 0xFF; } } } @@ -428,6 +429,7 @@ const Sprite *GetGlyph(FontSize size, WChar key) for (x = 0; x < slot->bitmap.width; x++) { if (HASBIT(slot->bitmap.buffer[(x / 8) + y * slot->bitmap.pitch], 7 - (x % 8))) { sprite.data[x + y * sprite.width].m = FACE_COLOUR; + sprite.data[x + y * sprite.width].a = 0xFF; } } } -- cgit v1.2.3-54-g00ecf