forked from len0rd/rockbox
Don't set the drawmode twice and simplify two cases in viewport_parse_viewport.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22227 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f909428321
commit
a1b0e165cc
2 changed files with 21 additions and 23 deletions
|
@ -625,9 +625,6 @@ static int parse_viewport(const char *wps_bufptr,
|
|||
struct viewport *vp = &wps_data->viewports[wps_data->num_viewports].vp;
|
||||
/* format: %V|x|y|width|height|font|fg_pattern|bg_pattern| */
|
||||
|
||||
/* Set the defaults for fields not user-specified */
|
||||
vp->drawmode = DRMODE_SOLID;
|
||||
|
||||
if (!(ptr = viewport_parse_viewport(vp, screen, ptr, '|')))
|
||||
return WPS_ERROR_INVALID_PARAM;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue