Improved text with bitmap fonts : Works great with 'Get brush colors' (F11) to import the exact font colors.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1708 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -216,6 +216,13 @@ byte Get_SDL_pixel_8(SDL_Surface *bmp, int x, int y)
|
||||
return ((byte *)(bmp->pixels))[(y*bmp->pitch+x)];
|
||||
}
|
||||
|
||||
/// Writes a pixel in a 8-bit SDL surface.
|
||||
void Set_SDL_pixel_8(SDL_Surface *bmp, int x, int y, byte color)
|
||||
{
|
||||
((byte *)(bmp->pixels))[(y*bmp->pitch+x)]=color;
|
||||
}
|
||||
|
||||
|
||||
/// Reads a pixel in a multi-byte SDL surface.
|
||||
dword Get_SDL_pixel_hicolor(SDL_Surface *bmp, int x, int y)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user