diff options
author | Alexander Levin <al.le@rockbox.org> | 2009-08-12 13:37:07 +0000 |
---|---|---|
committer | Alexander Levin <al.le@rockbox.org> | 2009-08-12 13:37:07 +0000 |
commit | 3bfc0e7a7e834ea3bf0a0e42d371b7f890e7a827 (patch) | |
tree | 22f02c9e6b165d08350837cb263c2677529243bd /apps/gui/viewport.h | |
parent | e4bdc08d0c2468f5d9fa6205495788241d7e562a (diff) | |
download | rockbox-3bfc0e7a7e834ea3bf0a0e42d371b7f890e7a827.tar.gz rockbox-3bfc0e7a7e834ea3bf0a0e42d371b7f890e7a827.tar.bz2 rockbox-3bfc0e7a7e834ea3bf0a0e42d371b7f890e7a827.zip |
Remove unneeded symbols and improve the comment to the VP parsing function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22266 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/viewport.h')
-rw-r--r-- | apps/gui/viewport.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h index f703c97342..16f52eb292 100644 --- a/apps/gui/viewport.h +++ b/apps/gui/viewport.h @@ -28,25 +28,28 @@ /* return the number of text lines in the vp viewport */ int viewport_get_nb_lines(struct viewport *vp); -#define VP_ERROR 0 -#define VP_DIMENSIONS 0x1 -#define VP_COLORS 0x2 -#define VP_SELECTIONCOLORS 0x4 -/* load a viewport struct from a config string. - returns a combination of the above to say which were loaded ok from the string */ -int viewport_load_config(const char *config, struct viewport *vp); - void viewport_set_defaults(struct viewport *vp, enum screen_type screen); -/* parse a viewport list, which looks like - * X|Y|width|height|font|foregorund color|background color - * | is a separator */ +/* Parse a viewport definition (vp_def), which looks like: + * + * Screens with depth > 1: + * X|Y|width|height|font|foregorund color|background color + * Screens with depth = 1: + * X|Y|width|height|font + * + * | is a separator and can be specified via the parameter + * + * Returns the pointer to the char after the last character parsed + * if everything went OK or NULL if an error happened (some values + * not specified in the definition) + */ #ifdef HAVE_LCD_BITMAP const char* viewport_parse_viewport(struct viewport *vp, enum screen_type screen, - const char *bufptr, + const char *vp_def, const char separator); #endif + /* Used to specify which screens the statusbar (SB) should be displayed on. * * The parameter is a bit OR'ed combination of the following (screen is |