summaryrefslogtreecommitdiff
path: root/src/fontcache.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-13 16:04:35 +0000
committertruelight <truelight@openttd.org>2007-06-13 16:04:35 +0000
commit63f56f811b14a761344baa015ce9ea7ed669761c (patch)
tree9fefeb9b430522a88904a9f51a8c545f49404328 /src/fontcache.cpp
parent8d623faf0d3ae5faef13350da87a29cf7e19e60c (diff)
downloadopenttd-63f56f811b14a761344baa015ce9ea7ed669761c.tar.xz
(svn r10142) -Fix r10132: do something useful with the alpha channel instead of ignoring it
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r--src/fontcache.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}
}
}