diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-08-03 15:06:30 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-08-03 15:06:30 +0000 |
commit | 3b75c86d74937a6bffcb371bb08bdfb182db9d2b (patch) | |
tree | 3be12a89b7a5377a31a46b48e672e08af36ac949 /apps/filetree.c | |
parent | 0dc5cc8002e3d30fc7ae7ddf7f33a56c8b136e7e (diff) | |
download | rockbox-3b75c86d74937a6bffcb371bb08bdfb182db9d2b.tar.gz rockbox-3b75c86d74937a6bffcb371bb08bdfb182db9d2b.zip |
A bit mroe wps/skin engine cleanup so that the structs the wps uses can be static:
-add wrappers wps_data_load() and wps_data_init() so that other code doesn't need the structs for that
-change (and rename) gui_sync_wps_uses_albumart() to take points to be filled as parameter to get the AA size of a wps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22139 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/filetree.c')
-rw-r--r-- | apps/filetree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/filetree.c b/apps/filetree.c index 8e97a0d13c..e6be09ad6c 100644 --- a/apps/filetree.c +++ b/apps/filetree.c | |||
@@ -51,7 +51,7 @@ | |||
51 | #if CONFIG_TUNER | 51 | #if CONFIG_TUNER |
52 | #include "radio.h" | 52 | #include "radio.h" |
53 | #endif | 53 | #endif |
54 | #include "skin_engine/skin_engine.h" | 54 | #include "wps.h" |
55 | #include "backdrop.h" | 55 | #include "backdrop.h" |
56 | 56 | ||
57 | static int compare_sort_dir; /* qsort key for sorting directories */ | 57 | static int compare_sort_dir; /* qsort key for sorting directories */ |
@@ -484,7 +484,7 @@ int ft_enter(struct tree_context* c) | |||
484 | #if LCD_DEPTH > 1 | 484 | #if LCD_DEPTH > 1 |
485 | unload_wps_backdrop(); | 485 | unload_wps_backdrop(); |
486 | #endif | 486 | #endif |
487 | skin_data_load(gui_wps[0].data, &screens[0], buf, true); | 487 | wps_data_load(SCREEN_MAIN, buf, true); |
488 | set_file(buf, (char *)global_settings.wps_file, | 488 | set_file(buf, (char *)global_settings.wps_file, |
489 | MAX_FILENAME); | 489 | MAX_FILENAME); |
490 | break; | 490 | break; |
@@ -496,7 +496,7 @@ int ft_enter(struct tree_context* c) | |||
496 | #if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1 | 496 | #if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1 |
497 | unload_remote_wps_backdrop(); | 497 | unload_remote_wps_backdrop(); |
498 | #endif | 498 | #endif |
499 | skin_data_load(gui_wps[1].data, &screens[1], buf, true); | 499 | wps_data_load(SCREEN_REMOTE, buf, true); |
500 | set_file(buf, (char *)global_settings.rwps_file, | 500 | set_file(buf, (char *)global_settings.rwps_file, |
501 | MAX_FILENAME); | 501 | MAX_FILENAME); |
502 | break; | 502 | break; |