summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/lcd-bitmap-common.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-10-11 01:19:55 +0000
committerThomas Martitz <kugel@rockbox.org>2010-10-11 01:19:55 +0000
commit3022a60cc2c5958555743f9438b8cf7cd95987f0 (patch)
tree18dc395d0d9cb1895fa831fbe92ae48ab7438d04 /firmware/drivers/lcd-bitmap-common.c
parent1f0ab7c9e636ba3e88700b1b6fb75e876a0f0a44 (diff)
downloadrockbox-3022a60cc2c5958555743f9438b8cf7cd95987f0.tar.gz
rockbox-3022a60cc2c5958555743f9438b8cf7cd95987f0.tar.bz2
rockbox-3022a60cc2c5958555743f9438b8cf7cd95987f0.zip
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
Diffstat (limited to 'firmware/drivers/lcd-bitmap-common.c')
-rw-r--r--firmware/drivers/lcd-bitmap-common.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index d09d293c26..8e3b52c246 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -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 */