FW: [AD] translucent fonts |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
-----Original Message-----
From: alleg-developers-admin@xxxxxxxxxx
[mailto:alleg-developers-admin@xxxxxxxxxx] On Behalf Of Elias
Pschernig
Sent: Thursday, January 05, 2006 11:32 AM
To: alleg-developers@xxxxxxxxxx
Subject: RE: [AD] translucent fonts
On Thu, 2006-01-05 at 18:30 +0100, Elias Pschernig wrote:
>
> The attached patch
>
*sigh*
--
Elias Pschernig
Index: src/fontconv.c
===================================================================
RCS file: /cvsroot/allegrogl/alleggl/src/fontconv.c,v
retrieving revision 1.37
diff -r1.37 fontconv.c
1333,1338c1333,1343
< bmp = create_bitmap_ex((format == GL_ALPHA4
< || format == GL_ALPHA8 || format == GL_ALPHA || format == 1
< || format == GL_INTENSITY || format == GL_INTENSITY4
< || format == GL_INTENSITY8 || format == GL_LUMINANCE
< || format == GL_LUMINANCE4 || format == GL_LUMINANCE8)
< ? 8 : 24, t->w, t->h);
---
> {
> int cd = 24;
> if (format == GL_ALPHA4
> || format == GL_ALPHA8 || format == GL_ALPHA || format == 1
> || format == GL_INTENSITY || format == GL_INTENSITY4
> || format == GL_INTENSITY8 || format == GL_LUMINANCE
> || format == GL_LUMINANCE4 || format == GL_LUMINANCE8)
> cd = 8;
> else if (format == GK_RGBA8)
> cd = 32;
> bmp = create_bitmap_ex(cd, t->w, t->h);
1498a1504
> printf("texture bitmap alpha: %d\n", bitmap_has_alpha(bmp));