diff options
author | Kevin Ferrare <kevin@rockbox.org> | 2005-11-01 23:56:03 +0000 |
---|---|---|
committer | Kevin Ferrare <kevin@rockbox.org> | 2005-11-01 23:56:03 +0000 |
commit | 4158ba1ff13d623ee32b91efedd4d1d2212543e4 (patch) | |
tree | cccb8c9a6080876bfed126604e1057e627368b1a /apps/screen_access.h | |
parent | 0b19487898b779b60de8f07ff1a52ef515b8d072 (diff) | |
download | rockbox-4158ba1ff13d623ee32b91efedd4d1d2212543e4.tar.gz rockbox-4158ba1ff13d623ee32b91efedd4d1d2212543e4.zip |
Changed back the copyright's name in onplay.c (silly UTF-8, sorry Björn ! ), changed the internal multi-screen API a little bit, in a cleaner way
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7716 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screen_access.h')
-rw-r--r-- | apps/screen_access.h | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/apps/screen_access.h b/apps/screen_access.h index 0a5452c580..a91d2915fa 100644 --- a/apps/screen_access.h +++ b/apps/screen_access.h @@ -106,13 +106,6 @@ struct screen */ extern void screen_init(struct screen * screen, enum screen_type screen_type); -/* - * Compute the number of text lines the display can draw with the current font - * - screen : the screen structure - * Returns the number of text lines - */ -extern void screen_update_nblines(struct screen * screen); - #ifdef HAS_BUTTONBAR /* * Sets if the given screen has a buttonbar or not @@ -123,31 +116,21 @@ extern void screen_update_nblines(struct screen * screen); (screen)->has_buttonbar=has_btnb; #endif -#ifdef HAVE_LCD_BITMAP /* - * Compute the number of pixels from which text can be displayed + * Sets the x margin in pixels for the given screen * - screen : the screen structure - * Returns the number of pixels + * - xmargin : the number of pixels to the left of the screen */ -#define screen_get_text_y_start(screen) \ - ( (global_settings.statusbar)? STATUSBAR_HEIGHT : 0) +#define screen_set_xmargin(screen, xmargin) \ + (screen)->setmargins(xmargin, (screen)->getymargin()); /* - * Compute the number of pixels below which text can't be displayed + * Sets the y margin in pixels for the given screen * - screen : the screen structure - * Returns the number of pixels + * - xmargin : the number of pixels to the top of the screen */ -#ifdef HAS_BUTTONBAR -#define screen_get_text_y_end(screen) \ - ( (screen)->height - ( (global_settings.buttonbar && \ - (screen)->has_buttonbar)? \ - BUTTONBAR_HEIGHT : 0) ) -#else -#define screen_get_text_y_end(screen) \ - ( (screen)->height ) -#endif /* HAS_BUTTONBAR */ - -#endif /* HAVE_LCD_BITMAP */ +#define screen_set_ymargin(screen, ymargin) \ + (screen)->setmargins((screen)->getxmargin(), ymargin); /* * Initializes the whole screen_access api @@ -155,12 +138,6 @@ extern void screen_update_nblines(struct screen * screen); extern void screen_access_init(void); /* - * Just recalculate the number of text lines that can be displayed - * on each screens in case of poilice change for example - */ -extern void screen_access_update_nb_lines(void); - -/* * exported screens array that should be used * by each app that wants to write to access display */ |