summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/SOURCES1
-rw-r--r--apps/filetree.c17
-rw-r--r--apps/filetypes.h2
-rw-r--r--apps/gui/list.c1
-rw-r--r--apps/gui/skin_engine/skin_display.c36
-rw-r--r--apps/gui/skin_engine/skin_parser.c7
-rw-r--r--apps/gui/skin_engine/wps_internals.h2
-rw-r--r--apps/gui/statusbar-skinned.c127
-rw-r--r--apps/gui/statusbar-skinned.h41
-rw-r--r--apps/gui/viewport.c18
-rw-r--r--apps/gui/wps.c2
-rw-r--r--apps/main.c1
-rw-r--r--apps/settings.c12
-rw-r--r--apps/settings.h2
-rw-r--r--apps/settings_list.c2
15 files changed, 18 insertions, 253 deletions
diff --git a/apps/SOURCES b/apps/SOURCES
index 49d248d8ff..bac376589a 100644
--- a/apps/SOURCES
+++ b/apps/SOURCES
@@ -78,7 +78,6 @@ gui/quickscreen.c
78#endif 78#endif
79 79
80gui/wps.c 80gui/wps.c
81gui/statusbar-skinned.c
82gui/scrollbar.c 81gui/scrollbar.c
83gui/splash.c 82gui/splash.c
84gui/statusbar.c 83gui/statusbar.c
diff --git a/apps/filetree.c b/apps/filetree.c
index 504c06c7fb..8fbc39fa67 100644
--- a/apps/filetree.c
+++ b/apps/filetree.c
@@ -477,22 +477,7 @@ int ft_enter(struct tree_context* c)
477 break; 477 break;
478#endif 478#endif
479 479
480#ifdef HAVE_LCD_BITMAP 480
481 case FILE_ATTR_SB:
482 splash(0, ID2P(LANG_WAIT));
483 set_file(buf, (char *)global_settings.sb_file,
484 MAX_FILENAME);
485 settings_apply_skins();
486 break;
487#endif
488#ifdef HAVE_REMOTE_LCD
489 case FILE_ATTR_RSB:
490 splash(0, ID2P(LANG_WAIT));
491 set_file(buf, (char *)global_settings.rsb_file,
492 MAX_FILENAME);
493 settings_apply_skins();
494 break;
495#endif
496 /* wps config file */ 481 /* wps config file */
497 case FILE_ATTR_WPS: 482 case FILE_ATTR_WPS:
498 splash(0, ID2P(LANG_WAIT)); 483 splash(0, ID2P(LANG_WAIT));
diff --git a/apps/filetypes.h b/apps/filetypes.h
index 472f792298..f872cf86f0 100644
--- a/apps/filetypes.h
+++ b/apps/filetypes.h
@@ -41,8 +41,6 @@
41#define FILE_ATTR_KBD 0x0C00 /* keyboard file */ 41#define FILE_ATTR_KBD 0x0C00 /* keyboard file */
42#define FILE_ATTR_FMR 0x0D00 /* preset file */ 42#define FILE_ATTR_FMR 0x0D00 /* preset file */
43#define FILE_ATTR_CUE 0x0E00 /* cuesheet file */ 43#define FILE_ATTR_CUE 0x0E00 /* cuesheet file */
44#define FILE_ATTR_SB 0x0F00 /* cuesheet file */
45#define FILE_ATTR_RSB 0x1000 /* cuesheet file */
46#define FILE_ATTR_MASK 0xFF00 /* which bits tree.c uses for file types */ 44#define FILE_ATTR_MASK 0xFF00 /* which bits tree.c uses for file types */
47 45
48struct filetype { 46struct filetype {
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 0090f44b42..d7ecdccd30 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -29,7 +29,6 @@
29#include "kernel.h" 29#include "kernel.h"
30#include "system.h" 30#include "system.h"
31 31
32#include "appevents.h"
33#include "action.h" 32#include "action.h"
34#include "screen_access.h" 33#include "screen_access.h"
35#include "list.h" 34#include "list.h"
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index ef1c39c1c7..a5ea28619a 100644
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -168,7 +168,7 @@ static void draw_progressbar(struct gui_wps *gwps,
168 elapsed = 0; 168 elapsed = 0;
169 length = 0; 169 length = 0;
170 } 170 }
171 171
172 if (pb->have_bitmap_pb) 172 if (pb->have_bitmap_pb)
173 gui_bitmap_scrollbar_draw(display, pb->bm, 173 gui_bitmap_scrollbar_draw(display, pb->bm,
174 pb->x, y, pb->width, pb->bm.height, 174 pb->x, y, pb->width, pb->bm.height,
@@ -482,12 +482,7 @@ static bool evaluate_conditional(struct gui_wps *gwps, int *token_index)
482#ifdef HAVE_LCD_BITMAP 482#ifdef HAVE_LCD_BITMAP
483 /* clear all pictures in the conditional and nested ones */ 483 /* clear all pictures in the conditional and nested ones */
484 if (data->tokens[i].type == WPS_TOKEN_IMAGE_PRELOAD_DISPLAY) 484 if (data->tokens[i].type == WPS_TOKEN_IMAGE_PRELOAD_DISPLAY)
485 { 485 clear_image_pos(gwps, find_image(data->tokens[i].value.i&0xFF, gwps->data));
486 struct gui_img *tmp = find_image(data->tokens[i].value.i&0xFF,
487 data);
488 if (tmp)
489 clear_image_pos(gwps, tmp);
490 }
491#endif 486#endif
492#ifdef HAVE_ALBUMART 487#ifdef HAVE_ALBUMART
493 if (data->albumart && data->tokens[i].type == WPS_TOKEN_ALBUMART_DISPLAY) 488 if (data->albumart && data->tokens[i].type == WPS_TOKEN_ALBUMART_DISPLAY)
@@ -504,35 +499,17 @@ static bool evaluate_conditional(struct gui_wps *gwps, int *token_index)
504#ifdef HAVE_LCD_BITMAP 499#ifdef HAVE_LCD_BITMAP
505struct gui_img* find_image(char label, struct wps_data *data) 500struct gui_img* find_image(char label, struct wps_data *data)
506{ 501{
507 static int i = 0;
508 struct gui_img *ret = NULL;
509 struct skin_token_list *list = data->images; 502 struct skin_token_list *list = data->images;
510 if (data->debug)
511 {
512 DEBUGF("%s >> requesting image (id: %d)\n", __func__, n);
513 DEBUGF("%s >> first list data (p: %p\n", __func__, data->images);
514 }
515 while (list) 503 while (list)
516 { 504 {
517 struct gui_img *img = (struct gui_img *)list->token->value.data; 505 struct gui_img *img = (struct gui_img *)list->token->value.data;
518 if (img->label == label) 506 if (img->label == label)
519 { 507 return img;
520 i = 0;
521 ret = img; goto end;
522 }
523 list = list->next; 508 list = list->next;
524/*
525 if (!list && data->debug)
526 DEBUGF("failed to find: %s\n", img->bm.data);
527*/
528 } 509 }
529 i = 0; 510 return NULL;
530end: 511}
531 if (data->debug) 512#endif
532 DEBUGF("%s >> returning %p\n", __func__, ret);
533 return ret;
534}
535#endif
536 513
537struct skin_viewport* find_viewport(char label, struct wps_data *data) 514struct skin_viewport* find_viewport(char label, struct wps_data *data)
538{ 515{
@@ -547,6 +524,7 @@ struct skin_viewport* find_viewport(char label, struct wps_data *data)
547 return NULL; 524 return NULL;
548} 525}
549 526
527
550/* Read a (sub)line to the given alignment format buffer. 528/* Read a (sub)line to the given alignment format buffer.
551 linebuf is the buffer where the data is actually stored. 529 linebuf is the buffer where the data is actually stored.
552 align is the alignment format that'll be used to display the text. 530 align is the alignment format that'll be used to display the text.
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index 9a8d3f5ce4..fa35ed994f 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -603,8 +603,6 @@ static int parse_image_load(const char *wps_bufptr,
603 return WPS_ERROR_INVALID_PARAM; 603 return WPS_ERROR_INVALID_PARAM;
604 /* save a pointer to the filename */ 604 /* save a pointer to the filename */
605 img->bm.data = (char*)filename; 605 img->bm.data = (char*)filename;
606 if (wps_data->debug)
607 DEBUGF("%s >> image parsed (label: %c)\n", __func__, *id);
608 img->label = *id; 606 img->label = *id;
609 img->x = x; 607 img->x = x;
610 img->y = y; 608 img->y = y;
@@ -1641,13 +1639,8 @@ void skin_data_reset(struct wps_data *wps_data)
1641 wps_data->wps_progress_pat[i] = 0; 1639 wps_data->wps_progress_pat[i] = 0;
1642 } 1640 }
1643 wps_data->full_line_progressbar = false; 1641 wps_data->full_line_progressbar = false;
1644
1645#ifdef HAVE_REMOTE_LCD
1646 data->remote_wps = rwps;
1647#endif 1642#endif
1648 wps_data->wps_loaded = false; 1643 wps_data->wps_loaded = false;
1649 if (wps_data->debug)
1650 DEBUGF("%s >> wps_data trashed (%p)\n", __func__, data);
1651} 1644}
1652 1645
1653#ifdef HAVE_LCD_BITMAP 1646#ifdef HAVE_LCD_BITMAP
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h
index 1d1bcbc8e4..638fb0a081 100644
--- a/apps/gui/skin_engine/wps_internals.h
+++ b/apps/gui/skin_engine/wps_internals.h
@@ -263,6 +263,7 @@ struct wps_data
263 int num_tokens; 263 int num_tokens;
264 /* tick the volume button was last pressed */ 264 /* tick the volume button was last pressed */
265 unsigned int button_time_volume; 265 unsigned int button_time_volume;
266
266#ifdef HAVE_LCD_BITMAP 267#ifdef HAVE_LCD_BITMAP
267 bool peak_meter_enabled; 268 bool peak_meter_enabled;
268 bool wps_sb_tag; 269 bool wps_sb_tag;
@@ -276,7 +277,6 @@ struct wps_data
276 /* this must not be reset on skin loading */ 277 /* this must not be reset on skin loading */
277 bool remote_wps; 278 bool remote_wps;
278#endif 279#endif
279 bool debug;
280}; 280};
281 281
282/* wps_data end */ 282/* wps_data end */
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c
deleted file mode 100644
index bb77a5088c..0000000000
--- a/apps/gui/statusbar-skinned.c
+++ /dev/null
@@ -1,127 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2009 Thomas Martitz
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#include <stdio.h>
22#include <string.h>
23#include <stdlib.h>
24#include "config.h"
25
26#include "system.h"
27#include "settings.h"
28#include "appevents.h"
29#include "screens.h"
30#include "screen_access.h"
31#include "skin_engine/skin_engine.h"
32#include "skin_engine/wps_internals.h"
33#include "debug.h"
34
35
36/* currently only one wps_state is needed */
37extern struct wps_state wps_state;
38static struct gui_wps sb_skin[NB_SCREENS];
39static struct wps_data sb_skin_data[NB_SCREENS];
40
41/* initial setup of wps_data */
42static void sb_skin_update(void*);
43static bool loaded_ok = false;
44
45void sb_skin_data_load(enum screen_type screen, const char *buf, bool isfile)
46{
47
48 loaded_ok = buf && skin_data_load(sb_skin[screen].data,
49 &screens[screen], buf, isfile);
50
51
52 if (loaded_ok)
53 add_event(GUI_EVENT_ACTIONUPDATE, false, sb_skin_update);
54 else
55 remove_event(GUI_EVENT_ACTIONUPDATE, sb_skin_update);
56
57#ifdef HAVE_REMOVE_LCD
58 sb_skin[screen].data->remote_wps = !(screen == SCREEN_MAIN);
59#endif
60}
61
62void sb_skin_data_init(enum screen_type screen)
63{
64 skin_data_init(sb_skin[screen].data);
65}
66
67bool sb_skin_active(void)
68{
69 return loaded_ok;
70}
71
72void sb_skin_update(void* param)
73{
74 int i;
75 (void)param;
76 FOR_NB_SCREENS(i)
77 {
78 skin_update(&sb_skin[i], wps_state.do_full_update?
79 WPS_REFRESH_ALL : WPS_REFRESH_NON_STATIC);
80 }
81}
82
83void sb_skin_init(void)
84{
85 int i;
86 FOR_NB_SCREENS(i)
87 {
88 skin_data_init(&sb_skin_data[i]);
89#ifdef HAVE_ALBUMART
90 sb_skin_data[i].wps_uses_albumart = 0;
91#endif
92#ifdef HAVE_REMOTE_LCD
93 sb_skin_data[i].remote_wps = (i == SCREEN_REMOTE);
94#endif
95 sb_skin[i].data = &sb_skin_data[i];
96 sb_skin[i].display = &screens[i];
97 sb_skin[i].data->debug = true;
98 DEBUGF("data in init: %p, debug: %d\n", &sb_skin_data[i], sb_skin_data[i].debug);
99 /* Currently no seperate wps_state needed/possible
100 so use the only available ( "global" ) one */
101 sb_skin[i].state = &wps_state;
102 }
103#ifdef HAVE_LCD_BITMAP
104/*
105 add_event(GUI_EVENT_STATUSBAR_TOGGLE, false, statusbar_toggle_handler);
106*/
107#endif
108}
109
110#ifdef HAVE_ALBUMART
111bool sb_skin_uses_statusbar(int *width, int *height)
112{
113 int i;
114 FOR_NB_SCREENS(i) {
115 struct gui_wps *gwps = &sb_skin[i];
116 if (gwps->data && (gwps->data->wps_uses_albumart != WPS_ALBUMART_NONE))
117 {
118 if (width)
119 *width = sb_skin[0].data->albumart_max_width;
120 if (height)
121 *height = sb_skin[0].data->albumart_max_height;
122 return true;
123 }
124 }
125 return false;
126}
127#endif
diff --git a/apps/gui/statusbar-skinned.h b/apps/gui/statusbar-skinned.h
deleted file mode 100644
index 7714496e52..0000000000
--- a/apps/gui/statusbar-skinned.h
+++ /dev/null
@@ -1,41 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2009 Thomas Martitz
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#include <stdio.h>
22#include <string.h>
23#include <stdlib.h>
24#include "config.h"
25
26#ifndef __STATUSBAR_SKINNED_H__
27#define __STATUSBAR_SKINNED_H__
28
29
30void sb_skin_data_load(enum screen_type screen, const char *buf, bool isfile);
31void sb_skin_data_init(enum screen_type screen);
32
33/* probably temporary, to shut the classic statusbar up */
34bool sb_skin_active(void);
35void sb_skin_init(void);
36
37#ifdef HAVE_ALBUMART
38bool sb_skin_uses_statusbar(int *width, int *height);
39#endif
40
41#endif /* __STATUSBAR_SKINNED_H__ */
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c
index 1a2b29a65a..fdd06bdc46 100644
--- a/apps/gui/viewport.c
+++ b/apps/gui/viewport.c
@@ -189,8 +189,7 @@ int viewportmanager_set_statusbar(const int enabled)
189 if (showing_bars(i)) 189 if (showing_bars(i))
190 gui_statusbar_draw(&statusbars.statusbars[i], true); 190 gui_statusbar_draw(&statusbars.statusbars[i], true);
191 } 191 }
192 if (!sb_skin_active()) 192 add_event(GUI_EVENT_ACTIONUPDATE, false, viewportmanager_redraw);
193 add_event(GUI_EVENT_ACTIONUPDATE, false, viewportmanager_redraw);
194 } 193 }
195 else 194 else
196 { 195 {
@@ -251,13 +250,14 @@ void viewportmanager_theme_changed(const int which)
251 if (which & THEME_STATUSBAR) 250 if (which & THEME_STATUSBAR)
252 { 251 {
253 statusbar_enabled = VP_SB_HIDE_ALL; 252 statusbar_enabled = VP_SB_HIDE_ALL;
254 if (global_settings.statusbar != STATUSBAR_OFF) 253
255 statusbar_enabled = VP_SB_ONSCREEN(SCREEN_MAIN); 254 FOR_NB_SCREENS(i)
256#ifdef HAVE_REMOTE_LCD 255 {
257 if (global_settings.remote_statusbar != STATUSBAR_OFF) 256 if (statusbar_position(i) != STATUSBAR_OFF)
258 statusbar_enabled |= VP_SB_ONSCREEN(SCREEN_REMOTE); 257 statusbar_enabled |= VP_SB_ONSCREEN(i);
259#endif 258 }
260 if (statusbar_enabled && !sb_skin_active()) 259
260 if (statusbar_enabled != VP_SB_HIDE_ALL)
261 add_event(GUI_EVENT_ACTIONUPDATE, false, viewportmanager_redraw); 261 add_event(GUI_EVENT_ACTIONUPDATE, false, viewportmanager_redraw);
262 else 262 else
263 remove_event(GUI_EVENT_ACTIONUPDATE, viewportmanager_redraw); 263 remove_event(GUI_EVENT_ACTIONUPDATE, viewportmanager_redraw);
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index 3ea5cf97f7..342ebdea2b 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -131,7 +131,6 @@ void wps_data_load(enum screen_type screen, const char *buf, bool isfile)
131 131
132 loaded_ok = buf && skin_data_load(gui_wps[screen].data, 132 loaded_ok = buf && skin_data_load(gui_wps[screen].data,
133 &screens[screen], buf, isfile); 133 &screens[screen], buf, isfile);
134 DEBUGF("%s >> wps loading\n", __func__);
135 if (!loaded_ok) /* load the hardcoded default */ 134 if (!loaded_ok) /* load the hardcoded default */
136 { 135 {
137 char *skin_buf[NB_SCREENS] = { 136 char *skin_buf[NB_SCREENS] = {
@@ -1292,7 +1291,6 @@ void gui_sync_wps_init(void)
1292#ifdef HAVE_REMOTE_LCD 1291#ifdef HAVE_REMOTE_LCD
1293 wps_datas[i].remote_wps = (i == SCREEN_REMOTE); 1292 wps_datas[i].remote_wps = (i == SCREEN_REMOTE);
1294#endif 1293#endif
1295 wps_datas[i].debug = false;
1296 gui_wps[i].data = &wps_datas[i]; 1294 gui_wps[i].data = &wps_datas[i];
1297 gui_wps[i].display = &screens[i]; 1295 gui_wps[i].display = &screens[i];
1298 /* Currently no seperate wps_state needed/possible 1296 /* Currently no seperate wps_state needed/possible
diff --git a/apps/main.c b/apps/main.c
index 6e902a73b1..f48dd2d0a0 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -322,7 +322,6 @@ static void init(void)
322 settings_reset(); 322 settings_reset();
323 settings_load(SETTINGS_ALL); 323 settings_load(SETTINGS_ALL);
324 gui_sync_wps_init(); 324 gui_sync_wps_init();
325 sb_skin_init();
326 settings_apply(true); 325 settings_apply(true);
327 init_dircache(true); 326 init_dircache(true);
328 init_dircache(false); 327 init_dircache(false);
diff --git a/apps/settings.c b/apps/settings.c
index 2069bfced4..2a5e31824f 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -740,7 +740,6 @@ void settings_apply_skins(void)
740 char buf[MAX_PATH]; 740 char buf[MAX_PATH];
741 /* re-initialize the skin buffer before we start reloading skins */ 741 /* re-initialize the skin buffer before we start reloading skins */
742 skin_buffer_init(); 742 skin_buffer_init();
743 sb_skin_data_init(SCREEN_MAIN);
744 if ( global_settings.wps_file[0] && 743 if ( global_settings.wps_file[0] &&
745 global_settings.wps_file[0] != 0xff ) 744 global_settings.wps_file[0] != 0xff )
746 { 745 {
@@ -752,17 +751,6 @@ void settings_apply_skins(void)
752 { 751 {
753 wps_data_load(SCREEN_MAIN, NULL, true); 752 wps_data_load(SCREEN_MAIN, NULL, true);
754 } 753 }
755 if ( global_settings.sb_file[0] &&
756 global_settings.sb_file[0] != 0xff ) {
757 snprintf(buf, sizeof buf, WPS_DIR "/%s.sb",
758 global_settings.sb_file);
759 sb_skin_data_load(SCREEN_MAIN, buf, true);
760 }
761 else
762 {
763 sb_skin_data_init(SCREEN_MAIN);
764 sb_skin_data_load(SCREEN_MAIN, NULL, true);
765 }
766#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) 754#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1)
767 if ( global_settings.rwps_file[0]) 755 if ( global_settings.rwps_file[0])
768 { 756 {
diff --git a/apps/settings.h b/apps/settings.h
index 305ffddcfa..ad250ed3b7 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -60,7 +60,6 @@ struct opt_items {
60#define FONT_DIR ROCKBOX_DIR "/fonts" 60#define FONT_DIR ROCKBOX_DIR "/fonts"
61#define LANG_DIR ROCKBOX_DIR "/langs" 61#define LANG_DIR ROCKBOX_DIR "/langs"
62#define WPS_DIR ROCKBOX_DIR "/wps" 62#define WPS_DIR ROCKBOX_DIR "/wps"
63#define SB_DIR ROCKBOX_DIR "/statusbar"
64#define THEME_DIR ROCKBOX_DIR "/themes" 63#define THEME_DIR ROCKBOX_DIR "/themes"
65#define ICON_DIR ROCKBOX_DIR "/icons" 64#define ICON_DIR ROCKBOX_DIR "/icons"
66 65
@@ -549,7 +548,6 @@ struct user_settings
549 int peak_meter_max; /* range maximum */ 548 int peak_meter_max; /* range maximum */
550 549
551 unsigned char wps_file[MAX_FILENAME+1]; /* last wps */ 550 unsigned char wps_file[MAX_FILENAME+1]; /* last wps */
552 unsigned char sb_file[MAX_FILENAME+1]; /* last wps */
553 unsigned char lang_file[MAX_FILENAME+1]; /* last language */ 551 unsigned char lang_file[MAX_FILENAME+1]; /* last language */
554 unsigned char playlist_catalog_dir[MAX_FILENAME+1]; 552 unsigned char playlist_catalog_dir[MAX_FILENAME+1];
555 int skip_length; /* skip length */ 553 int skip_length; /* skip length */
diff --git a/apps/settings_list.c b/apps/settings_list.c
index 59638bbeed..62a9351782 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -1440,8 +1440,6 @@ const struct settings_list settings[] = {
1440#endif 1440#endif
1441 TEXT_SETTING(F_THEMESETTING,wps_file, "wps", 1441 TEXT_SETTING(F_THEMESETTING,wps_file, "wps",
1442 DEFAULT_WPSNAME, WPS_DIR "/", ".wps"), 1442 DEFAULT_WPSNAME, WPS_DIR "/", ".wps"),
1443 TEXT_SETTING(F_THEMESETTING,sb_file, "sb",
1444 DEFAULT_WPSNAME, WPS_DIR "/", ".sb"),
1445 TEXT_SETTING(0,lang_file,"lang","",LANG_DIR "/",".lng"), 1443 TEXT_SETTING(0,lang_file,"lang","",LANG_DIR "/",".lng"),
1446#ifdef HAVE_REMOTE_LCD 1444#ifdef HAVE_REMOTE_LCD
1447 TEXT_SETTING(F_THEMESETTING,rwps_file,"rwps", 1445 TEXT_SETTING(F_THEMESETTING,rwps_file,"rwps",