forked from len0rd/rockbox
Rename {draw,fill}_viewport once more (to draw_border_viewport and fill_viewport) and remove the viewport parameter as suggested by Dave Chapman.
The parameter wasn't used yet and it's not clear whether it should be a absolute or relative viewport. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28242 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1f0ab7c9e6
commit
3022a60cc2
9 changed files with 21 additions and 27 deletions
|
@ -82,25 +82,19 @@ static void lcd_gradient_rect(int x1, int x2, int y, unsigned h,
|
|||
#endif
|
||||
|
||||
/*
|
||||
* draws the borders of the viewport, or of current_vp if vp == NULL
|
||||
* draws the borders of the current viewport
|
||||
**/
|
||||
void LCDFN(draw_viewport_rect)(const struct viewport *vp)
|
||||
void LCDFN(draw_border_viewport)(void)
|
||||
{
|
||||
if (vp == NULL)
|
||||
LCDFN(drawrect)(0, 0, current_vp->width, current_vp->height);
|
||||
else
|
||||
LCDFN(drawrect)(vp->x, vp->y, vp->width, vp->height);
|
||||
LCDFN(drawrect)(0, 0, current_vp->width, current_vp->height);
|
||||
}
|
||||
|
||||
/*
|
||||
* fills the rectangle formed by vp or by current_vp if vp == NULL
|
||||
* fills the rectangle formed by current_vp
|
||||
**/
|
||||
void LCDFN(fill_viewport_rect)(const struct viewport *vp)
|
||||
void LCDFN(fill_viewport)(void)
|
||||
{
|
||||
if (vp == NULL)
|
||||
LCDFN(fillrect)(0, 0, current_vp->width, current_vp->height);
|
||||
else
|
||||
LCDFN(fillrect)(vp->x, vp->y, vp->width, vp->height);
|
||||
LCDFN(fillrect)(0, 0, current_vp->width, current_vp->height);
|
||||
}
|
||||
|
||||
/* put a string at a given pixel position, skipping first ofs pixel columns */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue