1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jonathan Gordon 2012-03-15 22:50:17 +11:00
parent dcc78cb867
commit 014a08cabb
9 changed files with 105 additions and 6 deletions

View file

@ -162,6 +162,10 @@ struct screen
#endif
#if defined(HAVE_LCD_BITMAP)
void (*set_framebuffer)(void *framebuffer);
#if defined(HAVE_LCD_COLOR)
void (*gradient_fillrect)(int x, int y, int width, int height,
unsigned start, unsigned end);
#endif
#endif
};