mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-18 20:42:31 +00:00
Remove character_length() and render_character() functions
This commit is contained in:
parent
7adf1d1a25
commit
370e9cdd08
@ -448,17 +448,3 @@ void draw_progress_bar(BITMAP* bmp,
|
|||||||
rectfill(bmp, x1+u+1, y1+1, x2-1, y2-1,
|
rectfill(bmp, x1+u+1, y1+1, x2-1, y2-1,
|
||||||
ui::to_system(theme->getColor(ThemeColor::Background)));
|
ui::to_system(theme->getColor(ThemeColor::Background)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************************/
|
|
||||||
/* Font related */
|
|
||||||
|
|
||||||
int character_length(FONT* font, int chr)
|
|
||||||
{
|
|
||||||
return font->vtable->char_length(font, chr);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* renders a character of the font centered in x and y */
|
|
||||||
void render_character(BITMAP* bmp, FONT* font, int chr, int x, int y, int fg, int bg)
|
|
||||||
{
|
|
||||||
font->vtable->render_char(font, chr, fg, bg, bmp, x, y);
|
|
||||||
}
|
|
||||||
|
@ -48,7 +48,4 @@ void draw_progress_bar(BITMAP* bmp,
|
|||||||
int x1, int y1, int x2, int y2,
|
int x1, int y1, int x2, int y2,
|
||||||
float progress);
|
float progress);
|
||||||
|
|
||||||
int character_length(FONT* font, int chr);
|
|
||||||
void render_character(BITMAP* bmp, FONT* font, int chr, int x, int y, int fg, int bg);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user