forked from len0rd/rockbox
Two new lcd/multi screen api convinience functions: draw_viewport(), fill_viewport().
They work as the drawrect/fillrect pendants but work on a viewport basis; pass NULL to draw the current viewport (the one set with set_viewport()). In conjunction with action_get_touchscreen_press_in_vp() it should be less of a pain to draw buttons and get presses on them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28239 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
752c91b50d
commit
8a0152bd4a
9 changed files with 47 additions and 14 deletions
|
|
@ -280,7 +280,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw, struct vi
|
|||
{
|
||||
display->set_viewport(vp);
|
||||
display->set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
|
||||
display->fillrect(0, 0, display->getwidth(), STATUSBAR_HEIGHT);
|
||||
display->fill_viewport(NULL);
|
||||
display->set_drawmode(DRMODE_SOLID);
|
||||
|
||||
if (bar->info.battery_state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue