mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
lcd: Move parameter handling calls to lcd-bitmap-common.c
No need to reimplement the same drawmode, getwidth, etc, calls for each pixel format. Change-Id: Ibbe32814f72e1492c190ba578cec303c1cf29b12
This commit is contained in:
parent
eaccdeeae2
commit
f8e968991d
6 changed files with 46 additions and 204 deletions
|
|
@ -108,43 +108,6 @@ void LCDFN(init)(void)
|
|||
|
||||
}
|
||||
|
||||
/*** parameter handling ***/
|
||||
|
||||
void LCDFN(set_drawmode)(int mode)
|
||||
{
|
||||
CURRENT_VP->drawmode = mode & (DRMODE_SOLID|DRMODE_INVERSEVID);
|
||||
}
|
||||
|
||||
int LCDFN(get_drawmode)(void)
|
||||
{
|
||||
return CURRENT_VP->drawmode;
|
||||
}
|
||||
|
||||
int LCDFN(getwidth)(void)
|
||||
{
|
||||
return CURRENT_VP->width;
|
||||
}
|
||||
|
||||
int LCDFN(getheight)(void)
|
||||
{
|
||||
return CURRENT_VP->height;
|
||||
}
|
||||
|
||||
void LCDFN(setfont)(int newfont)
|
||||
{
|
||||
CURRENT_VP->font = newfont;
|
||||
}
|
||||
|
||||
int LCDFN(getfont)(void)
|
||||
{
|
||||
return CURRENT_VP->font;
|
||||
}
|
||||
|
||||
int LCDFN(getstringsize)(const unsigned char *str, int *w, int *h)
|
||||
{
|
||||
return font_getstringsize(str, w, h, CURRENT_VP->font);
|
||||
}
|
||||
|
||||
/*** low-level drawing functions ***/
|
||||
|
||||
static void setpixel(int x, int y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue