From 771e82bbd15e56561431e6b76c40d0a1aa735d64 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Sat, 28 Dec 2002 21:59:35 +0000 Subject: [PATCH] Font png's no longer need to have alpha channel; black background and white pixels are enough git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@492 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c b/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c index 894d85ed1..04da30f48 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c +++ b/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c @@ -100,10 +100,10 @@ process_font (FRAMEPTR FramePtr, SDL_Surface *img[], int cel_ct) p = getpix (img[cel_ct], x, y); SDL_GetRGBA (p, img[cel_ct]->format, &r, &g, &b, &a); - if (a) - putpix (new_surf, x, y, 1); - else + if (r == 0 && g == 0 && b == 0) putpix (new_surf, x, y, 0); + else + putpix (new_surf, x, y, 1); } }