diff options
Diffstat (limited to 'apps/gui/skin_engine/skin_display.c')
-rw-r--r-- | apps/gui/skin_engine/skin_display.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index 206da9d9df..0613f986b3 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c | |||
@@ -95,39 +95,6 @@ void skin_update(enum skinnable_screens skin, enum screen_type screen, | |||
95 | 95 | ||
96 | #ifdef HAVE_LCD_BITMAP | 96 | #ifdef HAVE_LCD_BITMAP |
97 | 97 | ||
98 | void skin_statusbar_changed(struct gui_wps *skin) | ||
99 | { | ||
100 | if (!skin) | ||
101 | return; | ||
102 | struct wps_data *data = skin->data; | ||
103 | const struct screen *display = skin->display; | ||
104 | const int screen = display->screen_type; | ||
105 | struct skin_viewport *svp = skin_find_item(VP_DEFAULT_LABEL_STRING, SKIN_FIND_VP, data); | ||
106 | |||
107 | struct viewport *vp = &svp->vp; | ||
108 | viewport_set_defaults(vp, screen); | ||
109 | |||
110 | if (data->wps_sb_tag) | ||
111 | { /* fix up the default viewport */ | ||
112 | if (data->show_sb_on_wps) | ||
113 | { | ||
114 | if (statusbar_position(screen) != STATUSBAR_OFF) | ||
115 | return; /* vp is fixed already */ | ||
116 | |||
117 | vp->y = STATUSBAR_HEIGHT; | ||
118 | vp->height = display->lcdheight - STATUSBAR_HEIGHT; | ||
119 | } | ||
120 | else | ||
121 | { | ||
122 | if (statusbar_position(screen) == STATUSBAR_OFF) | ||
123 | return; /* vp is fixed already */ | ||
124 | vp->y = vp->x = 0; | ||
125 | vp->height = display->lcdheight; | ||
126 | vp->width = display->lcdwidth; | ||
127 | } | ||
128 | } | ||
129 | } | ||
130 | |||
131 | void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb) | 98 | void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb) |
132 | { | 99 | { |
133 | struct screen *display = gwps->display; | 100 | struct screen *display = gwps->display; |