diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-05-30 06:55:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-05-30 06:55:48 +0000 |
commit | 43d96f9c41c0209985b539f44b127e0f98ed1aa2 (patch) | |
tree | 8f905ad56873801d91fdbdb5aef648b139413fdb /firmware/drivers | |
parent | 7ec047c3a404320ef40ca5812ae5e542e35f0cc2 (diff) | |
download | rockbox-43d96f9c41c0209985b539f44b127e0f98ed1aa2.tar.gz rockbox-43d96f9c41c0209985b539f44b127e0f98ed1aa2.zip |
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
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/lcd.c | 2 | ||||
-rw-r--r-- | firmware/drivers/lcd.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index 21362918c8..6204d647b4 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c | |||
@@ -715,7 +715,7 @@ void lcd_clearpixel(int x, int y) | |||
715 | /* | 715 | /* |
716 | * Return width and height of a given font. | 716 | * Return width and height of a given font. |
717 | */ | 717 | */ |
718 | void lcd_getfontsize(int font, int *width, int *height) | 718 | void lcd_getfontsize(unsigned int font, int *width, int *height) |
719 | { | 719 | { |
720 | if(font < sizeof(fonts)) { | 720 | if(font < sizeof(fonts)) { |
721 | *width = fonts[font]; | 721 | *width = fonts[font]; |
diff --git a/firmware/drivers/lcd.h b/firmware/drivers/lcd.h index 7e5a4b8679..3557c9fe7c 100644 --- a/firmware/drivers/lcd.h +++ b/firmware/drivers/lcd.h | |||
@@ -82,7 +82,7 @@ extern void lcd_double_height (bool on); | |||
82 | 82 | ||
83 | extern void lcd_putsxy(int x, int y, char *string, int font); | 83 | extern void lcd_putsxy(int x, int y, char *string, int font); |
84 | extern void lcd_setfont(int font); | 84 | extern void lcd_setfont(int font); |
85 | extern void lcd_getfontsize(int font, int *width, int *height); | 85 | extern void lcd_getfontsize(unsigned int font, int *width, int *height); |
86 | extern void lcd_setmargins(int xmargin, int ymargin); | 86 | extern void lcd_setmargins(int xmargin, int ymargin); |
87 | extern void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, | 87 | extern void lcd_bitmap (unsigned char *src, int x, int y, int nx, int ny, |
88 | bool clear); | 88 | bool clear); |