diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2010-10-11 01:19:55 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2010-10-11 01:19:55 +0000 |
| commit | 3022a60cc2c5958555743f9438b8cf7cd95987f0 (patch) | |
| tree | 18dc395d0d9cb1895fa831fbe92ae48ab7438d04 /firmware/drivers | |
| parent | 1f0ab7c9e636ba3e88700b1b6fb75e876a0f0a44 (diff) | |
| download | rockbox-3022a60cc2c5958555743f9438b8cf7cd95987f0.zip rockbox-3022a60cc2c5958555743f9438b8cf7cd95987f0.tar.gz rockbox-3022a60cc2c5958555743f9438b8cf7cd95987f0.tar.bz2 rockbox-3022a60cc2c5958555743f9438b8cf7cd95987f0.tar.xz | |
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')
| -rw-r--r-- | firmware/drivers/lcd-bitmap-common.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c index d09d293..8e3b52c 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 */ |