From a27f2b8683204e337b142124979592ee1cd0d6f9 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 11 Oct 2009 00:05:12 +0000 Subject: A bit of const correctness and 80-char limit correction. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23083 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/viewport.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'apps/gui/viewport.h') diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h index cedb27e01c..cffc7fbaef 100644 --- a/apps/gui/viewport.h +++ b/apps/gui/viewport.h @@ -31,7 +31,8 @@ /* return the number of text lines in the vp viewport */ int viewport_get_nb_lines(const struct viewport *vp); -void viewport_set_defaults(struct viewport *vp, enum screen_type screen); +void viewport_set_defaults(struct viewport *vp, + const enum screen_type screen); /* Used to specify which screens the statusbar (SB) should be displayed on. * @@ -73,19 +74,20 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen); */ void viewportmanager_init(void); int viewportmanager_get_statusbar(void); -int viewportmanager_set_statusbar(int enabled); +int viewportmanager_set_statusbar(const int enabled); /* * Initializes the given viewport with maximum dimensions minus status- and * buttonbar */ -void viewport_set_fullscreen(struct viewport *vp, enum screen_type screen); +void viewport_set_fullscreen(struct viewport *vp, + const enum screen_type screen); #ifdef HAVE_LCD_BITMAP /* call this when a theme changed */ -void viewportmanager_theme_changed(int); +void viewportmanager_theme_changed(const int); /* * Returns a pointer to the current viewport @@ -103,9 +105,10 @@ void viewport_set_current_vp(struct viewport* vp); /* * returns true if the ui viewport is active on the screen */ -bool viewport_ui_vp_get_state(enum screen_type screen); +bool viewport_ui_vp_get_state(const enum screen_type screen); #ifdef HAVE_TOUCHSCREEN -bool viewport_point_within_vp(const struct viewport *vp, int x, int y); +bool viewport_point_within_vp(const struct viewport *vp, + const int x, const int y); #endif #else /* HAVE_LCD_CHARCELL */ -- cgit v1.2.3