Fix a remap problem on brush, when modified by Lua script then transformed. Fix Brush remap to maintain transparent pixels. Fix Text tool , respects transparent pixels and preview is always visible (The black PF_ fonts are no longer shown on a black background)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1726 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -117,7 +117,9 @@ SFont_Font* SFont_InitFont(SDL_Surface* Surface)
|
||||
|
||||
pixel = GetPixel(Surface, 0, Surface->h-1);
|
||||
SDL_UnlockSurface(Surface);
|
||||
SDL_SetColorKey(Surface, SDL_SRCCOLORKEY, pixel);
|
||||
// No longer use SDL color keying
|
||||
//SDL_SetColorKey(Surface, SDL_SRCCOLORKEY, pixel);
|
||||
Font->Transparent=pixel;
|
||||
|
||||
return Font;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user