summaryrefslogtreecommitdiffstats
path: root/firmware/export/lcd.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2013-12-20 23:34:28 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-07 11:36:00 +0100
commit77836e57362f91cd037ea9c97a8fda00187d2070 (patch)
tree8e1bb3d5cb4cdb17a62070685a4f9b56cd6927e7 /firmware/export/lcd.h
parent6630958533d02d66dca8cc79897fda2cb744c076 (diff)
downloadrockbox-77836e57362f91cd037ea9c97a8fda00187d2070.tar.gz
rockbox-77836e57362f91cd037ea9c97a8fda00187d2070.zip
lcd-16bit: Introduce lcd_gradient_fillrect_part().
It is similar to lcd_gradient_fillrect(), except that it only draws a part of the complete gradient. This can be used to draw only the bottom half of a full gradient. Change-Id: Ib47cc5237f6966e35ba07988bddbb00fd97adf96
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r--firmware/export/lcd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 745c445dda..af32b796be 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -530,6 +530,8 @@ 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_gradient_fillrect(int x, int y, int width, int height,
unsigned start_rgb, unsigned end_rgb);
+extern void lcd_gradient_fillrect_part(int x, int y, int width, int height,
+ unsigned start_rgb, unsigned end_rgb, int src_height, int row_skip);
extern void lcd_draw_border_viewport(void);
extern void lcd_fill_viewport(void);
extern void lcd_bitmap_part(const fb_data *src, int src_x, int src_y,