diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-06-23 13:20:35 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-06-23 13:20:35 +0000 |
| commit | bdbdb97f19655a635a2d37f81f9fe1e31f9162b2 (patch) | |
| tree | ea5672478b70e550910bc179a7644afa70c0d057 /apps/plugin.c | |
| parent | c1b8df05e1def3096ff6d2ea55f23b2e72936fce (diff) | |
| download | rockbox-bdbdb97f19655a635a2d37f81f9fe1e31f9162b2.zip rockbox-bdbdb97f19655a635a2d37f81f9fe1e31f9162b2.tar.gz rockbox-bdbdb97f19655a635a2d37f81f9fe1e31f9162b2.tar.bz2 rockbox-bdbdb97f19655a635a2d37f81f9fe1e31f9162b2.tar.xz | |
FS#9051 - remove LCD margins... use viewports if you need them...
NOTE to WPS people....
%m has been removed, but (i think) because of the other %m tags it wont fail if you try loading a wps with %m|..|, it will just be ignored.
Also note that if the statusbar is enabled the default viewport is 8 pixels shorter than when its not, i.e (0,0) is really (0,8) if the statusbar is shown... I dont think this will be a major issue because almost no WPS show the bar and use bitmaps... text only WPS shouldnt be affected.
Please report problem screens in http://forums.rockbox.org/index.php?topic=17358.0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17763 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 9a435b2..21f6d17 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -75,7 +75,6 @@ static const struct plugin_api rockbox_api = { lcd_set_contrast, lcd_update, lcd_clear_display, - lcd_setmargins, lcd_getstringsize, lcd_putsxy, lcd_puts, @@ -131,6 +130,10 @@ static const struct plugin_api rockbox_api = { #ifdef HAVE_LCD_INVERT lcd_set_invert_display, #endif /* HAVE_LCD_INVERT */ +#ifdef HAVE_LCD_ENABLE + lcd_set_enable_hook, + &button_queue, +#endif bidi_l2v, font_get_bits, font_load, @@ -158,7 +161,6 @@ static const struct plugin_api rockbox_api = { /* remote lcd */ lcd_remote_set_contrast, lcd_remote_clear_display, - lcd_remote_setmargins, lcd_remote_puts, lcd_remote_puts_scroll, lcd_remote_stop_scroll, @@ -216,6 +218,8 @@ static const struct plugin_api rockbox_api = { gui_synclist_limit_scroll, gui_synclist_do_button, gui_synclist_set_title, + simplelist_info_init, + simplelist_show_list, /* button */ button_get, @@ -598,13 +602,7 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ - simplelist_info_init, - simplelist_show_list, -#ifdef HAVE_LCD_ENABLE - lcd_set_enable_hook, - &button_queue, -#endif }; int plugin_load(const char* plugin, const void* parameter) @@ -620,10 +618,6 @@ int plugin_load(const char* plugin, const void* parameter) unsigned my_core; #endif #endif /* !SIMULATOR */ - int xm, ym; -#ifdef HAVE_REMOTE_LCD - int rxm, rym; -#endif #if LCD_DEPTH > 1 fb_data* old_backdrop; @@ -705,10 +699,7 @@ int plugin_load(const char* plugin, const void* parameter) #endif plugin_loaded = true; - - xm = lcd_getxmargin(); - ym = lcd_getymargin(); - lcd_setmargins(0,0); + #if defined HAVE_LCD_BITMAP && LCD_DEPTH > 1 old_backdrop = lcd_get_backdrop(); @@ -717,9 +708,6 @@ int plugin_load(const char* plugin, const void* parameter) lcd_update(); #ifdef HAVE_REMOTE_LCD - rxm = lcd_remote_getxmargin(); - rym = lcd_remote_getymargin(); - lcd_remote_setmargins(0, 0); lcd_remote_clear_display(); lcd_remote_update(); #endif @@ -744,8 +732,6 @@ int plugin_load(const char* plugin, const void* parameter) #endif /* LCD_DEPTH */ #endif /* HAVE_LCD_BITMAP */ - /* restore margins */ - lcd_setmargins(xm,ym); lcd_clear_display(); lcd_update(); @@ -756,7 +742,6 @@ int plugin_load(const char* plugin, const void* parameter) #else lcd_remote_set_drawmode(DRMODE_SOLID); #endif - lcd_remote_setmargins(rxm, rym); lcd_remote_clear_display(); |