[AD] is_color_font update |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: [AD] is_color_font update
- From: Milan Mimica <milan.mimica@xxxxxxxxxx>
- Date: Sun, 26 Mar 2006 20:33:25 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type; b=cEG8bL+z09rbJ26CfCSRM6v8RnqpWMOTdUX7S+GGfP6wy+sSgy43llNfumGtSDoslYCTLDZLvCj2LuIj2w7ygUR5vzvtidJQAXCl4WQaO6PgrcV0oz4mSWdLboxELMnU59onHnAyN2SFCHPi/F7NayiTS0r9bWexVfv20Jcu+sU=
This patch updates is_color_font() to take into consideration new trans
fonts.
--
Milan Mimica
http://sparklet.sf.net
Index: src/font.c
===================================================================
--- src/font.c (revision 5763)
+++ src/font.c (working copy)
@@ -1465,7 +1465,7 @@
{
ASSERT(f);
- return f->vtable == font_vtable_color;
+ return (f->vtable == font_vtable_color || f->vtable == font_vtable_trans);
}