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:
@@ -100,10 +100,10 @@ process_font (FRAMEPTR FramePtr, SDL_Surface *img[], int cel_ct)
|
|||||||
p = getpix (img[cel_ct], x, y);
|
p = getpix (img[cel_ct], x, y);
|
||||||
SDL_GetRGBA (p, img[cel_ct]->format, &r, &g, &b, &a);
|
SDL_GetRGBA (p, img[cel_ct]->format, &r, &g, &b, &a);
|
||||||
|
|
||||||
if (a)
|
if (r == 0 && g == 0 && b == 0)
|
||||||
putpix (new_surf, x, y, 1);
|
|
||||||
else
|
|
||||||
putpix (new_surf, x, y, 0);
|
putpix (new_surf, x, y, 0);
|
||||||
|
else
|
||||||
|
putpix (new_surf, x, y, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user