Fix compile errors
Change-Id: Ic985bf57da04847bff716ee41db8f107100ff95b
This commit is contained in:
parent
014a08cabb
commit
182a6c80ba
2 changed files with 6 additions and 0 deletions
|
@ -2058,6 +2058,8 @@ static int skin_element_callback(struct skin_element* element, void* data)
|
|||
sb_skin_has_title(curr_screen);
|
||||
#endif
|
||||
break;
|
||||
#endif
|
||||
#if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1))
|
||||
case SKIN_TOKEN_DRAWRECTANGLE:
|
||||
function = parse_drawrectangle;
|
||||
break;
|
||||
|
|
|
@ -191,11 +191,15 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info,
|
|||
else
|
||||
#endif
|
||||
{
|
||||
#if LCD_DEPTH > 1
|
||||
unsigned backup = vp->fg_pattern;
|
||||
vp->fg_pattern = rect->start_colour;
|
||||
#endif
|
||||
gwps->display->fillrect(rect->x, rect->y, rect->width,
|
||||
rect->height);
|
||||
#if LCD_DEPTH > 1
|
||||
vp->fg_pattern = backup;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue