summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-11-11 06:39:23 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-11-11 06:39:23 +0000
commit7c440bff3254250711e1768de2769dc68185fefd (patch)
treeda885d57a4bbc9db64994c37f7eb7d13a7f2353b /apps/plugin.c
parent664dc90e714837bec83153daa13ef39769705c78 (diff)
downloadrockbox-7c440bff3254250711e1768de2769dc68185fefd.zip
rockbox-7c440bff3254250711e1768de2769dc68185fefd.tar.gz
rockbox-7c440bff3254250711e1768de2769dc68185fefd.tar.bz2
rockbox-7c440bff3254250711e1768de2769dc68185fefd.tar.xz
remove 3 bad viewport functions:
* viewport_set_current_vp() because if a screen wants to not use the user setting it shouldn't be dealing with the viewport manager at all (other than to disable the bars) * viewport_ui_vp_get_state() is unused (and not needed) * viewport_get_current_vp() because you should be using set_defaults() instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23606 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index b75bfe6..b0a57d6 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -679,10 +679,9 @@ static const struct plugin_api rockbox_api = {
int plugin_load(const char* plugin, const void* parameter)
{
- int rc, i;
+ int rc;
int oldbars;
struct plugin_header *hdr;
- struct viewport plugin_vp[NB_SCREENS];
#ifdef SIMULATOR
void *pd;
#else /* !SIMULATOR */
@@ -789,11 +788,6 @@ int plugin_load(const char* plugin, const void* parameter)
oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL);
- FOR_NB_SCREENS(i)
- viewport_set_fullscreen(&plugin_vp[i], i);
-
- viewport_set_current_vp(plugin_vp);
-
cpucache_invalidate();
#ifdef HAVE_TOUCHSCREEN
@@ -835,7 +829,6 @@ int plugin_load(const char* plugin, const void* parameter)
#endif
viewportmanager_set_statusbar(oldbars);
- viewport_set_current_vp(NULL);
if (rc != PLUGIN_GOTO_WPS)
{