forked from len0rd/rockbox
lcd_getfontsize() now takes an unsigned font size as first argument
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@810 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7ec047c3a4
commit
43d96f9c41
2 changed files with 2 additions and 2 deletions
|
@ -715,7 +715,7 @@ void lcd_clearpixel(int x, int y)
|
||||||
/*
|
/*
|
||||||
* Return width and height of a given font.
|
* Return width and height of a given font.
|
||||||
*/
|
*/
|
||||||
void lcd_getfontsize(int font, int *width, int *height)
|
void lcd_getfontsize(unsigned int font, int *width, int *height)
|
||||||
{
|
{
|
||||||
if(font < sizeof(fonts)) {
|
if(font < sizeof(fonts)) {
|
||||||
*width = fonts[font];
|
*width = fonts[font];
|
||||||
|
|
|
@ -82,7 +82,7 @@ extern void lcd_double_height (bool on);
|
||||||
|
|
||||||
extern void lcd_putsxy(int x, int y, char *string, int font);
|
extern void lcd_putsxy(int x, int y, char *string, int font);
|
||||||
extern void lcd_setfont(int font);
|
extern void lcd_setfont(int font);
|
||||||
extern void lcd_getfontsize(int font, int *width, int *height);
|
extern void lcd_getfontsize(unsigned int font, int *width, int *height);
|
||||||
extern void lcd_setmargins(int xmargin, int ymargin);
|
extern void lcd_setmargins(int xmargin, int ymargin);
|
||||||
extern void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny,
|
extern void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny,
|
||||||
bool clear);
|
bool clear);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue