summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-10-10 23:35:03 +0000
committerThomas Martitz <kugel@rockbox.org>2010-10-10 23:35:03 +0000
commit5462ef728fd41a6db4d1d784c478416ceeebf588 (patch)
tree22b41630b2252ec9bb14ee0ec8ee254e105f4b04 /firmware
parent8a0152bd4ae638c1fe4917b855fcb9fc6a15202c (diff)
downloadrockbox-5462ef728fd41a6db4d1d784c478416ceeebf588.tar.gz
rockbox-5462ef728fd41a6db4d1d784c478416ceeebf588.tar.bz2
rockbox-5462ef728fd41a6db4d1d784c478416ceeebf588.zip
Add _rect to {draw,fill}_viewport as suggested by Jonathan Gordon to reduce the chance to confuse it with update_viewport().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28240 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd-bitmap-common.c4
-rw-r--r--firmware/export/lcd-remote.h4
-rw-r--r--firmware/export/lcd.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index d242096138..d09d293c26 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -84,7 +84,7 @@ static void lcd_gradient_rect(int x1, int x2, int y, unsigned h,
/*
* draws the borders of the viewport, or of current_vp if vp == NULL
**/
-void LCDFN(draw_viewport)(const struct viewport *vp)
+void LCDFN(draw_viewport_rect)(const struct viewport *vp)
{
if (vp == NULL)
LCDFN(drawrect)(0, 0, current_vp->width, current_vp->height);
@@ -95,7 +95,7 @@ void LCDFN(draw_viewport)(const struct viewport *vp)
/*
* fills the rectangle formed by vp or by current_vp if vp == NULL
**/
-void LCDFN(fill_viewport)(const struct viewport *vp)
+void LCDFN(fill_viewport_rect)(const struct viewport *vp)
{
if (vp == NULL)
LCDFN(fillrect)(0, 0, current_vp->width, current_vp->height);
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h
index 894d35ca11..5a78fa2b07 100644
--- a/firmware/export/lcd-remote.h
+++ b/firmware/export/lcd-remote.h
@@ -178,8 +178,8 @@ extern void lcd_remote_hline(int x1, int x2, int y);
extern void lcd_remote_vline(int x, int y1, int y2);
extern void lcd_remote_drawrect(int x, int y, int width, int height);
extern void lcd_remote_fillrect(int x, int y, int width, int height);
-extern void lcd_remote_draw_viewport(const struct viewport *vp);
-extern void lcd_remote_fill_viewport(const struct viewport *vp);
+extern void lcd_remote_draw_viewport_rect(const struct viewport *vp);
+extern void lcd_remote_fill_viewport_rect(const struct viewport *vp);
extern void lcd_remote_bitmap_part(const fb_remote_data *src, int src_x,
int src_y, int stride, int x, int y,
int width, int height);
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 6dab8f4cad..3a01cbca61 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -507,8 +507,8 @@ extern void lcd_hline(int x1, int x2, int y);
extern void lcd_vline(int x, int y1, int y2);
extern void lcd_drawrect(int x, int y, int width, int height);
extern void lcd_fillrect(int x, int y, int width, int height);
-extern void lcd_draw_viewport(const struct viewport *vp);
-extern void lcd_fill_viewport(const struct viewport *vp);
+extern void lcd_draw_viewport_rect(const struct viewport *vp);
+extern void lcd_fill_viewport_rect(const struct viewport *vp);
extern void lcd_bitmap_part(const fb_data *src, int src_x, int src_y,
int stride, int x, int y, int width, int height);
extern void lcd_bitmap(const fb_data *src, int x, int y, int width,