Make function arg const pointer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23063 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
15514b0dc6
commit
3c1e2c1777
2 changed files with 2 additions and 3 deletions
|
@ -78,7 +78,7 @@ static unsigned viewport_init_ui_vp(void);
|
|||
#endif
|
||||
static void viewportmanager_redraw(void* data);
|
||||
|
||||
int viewport_get_nb_lines(struct viewport *vp)
|
||||
int viewport_get_nb_lines(const struct viewport *vp)
|
||||
{
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
return vp->height/font_get(vp->font)->height;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
/***************************************************************************
|
||||
* __________ __ ___.
|
||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
|
@ -30,7 +29,7 @@
|
|||
#include "screen_access.h"
|
||||
|
||||
/* return the number of text lines in the vp viewport */
|
||||
int viewport_get_nb_lines(struct viewport *vp);
|
||||
int viewport_get_nb_lines(const struct viewport *vp);
|
||||
|
||||
void viewport_set_defaults(struct viewport *vp, enum screen_type screen);
|
||||
|
||||
|
|
Loading…
Reference in a new issue