From 014a08cabb856b2360419aac404744029ee4748c Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 15 Mar 2012 22:50:17 +1100 Subject: skin_engine: New tag to draw a rectangle (optionally with a gradient) %dr(x, y, width, height, [colour1[, colour2]]): x,y - viewport relative pixel coordinates to start the rectangle. width, height - obvious. can be '-' to fill the viewport if both colours are left out the viewports foreground colour will be used if one colour is specified it will fill the rectangle that colour. if both colours are specified it will gradient fill the rectangle. Change-Id: Iad451e99ded663bc7c5d182443659db7d909b388 --- apps/screen_access.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/screen_access.c') diff --git a/apps/screen_access.c b/apps/screen_access.c index 43000e1360..fc92210981 100644 --- a/apps/screen_access.c +++ b/apps/screen_access.c @@ -264,6 +264,9 @@ struct screen screens[NB_SCREENS] = #endif #if defined(HAVE_LCD_BITMAP) .set_framebuffer = (void*)lcd_set_framebuffer, +#if defined(HAVE_LCD_COLOR) + .gradient_fillrect = lcd_gradient_fillrect, +#endif #endif }, #if NB_SCREENS == 2 -- cgit v1.2.3