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
This commit is contained in:
gewlitys
2002-12-28 21:59:35 +00:00
parent f59aee7903
commit 771e82bbd1
@@ -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);
}
}