diff options
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/main_menu.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index 2ceed216a2..aa993ecdc0 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #endif | 49 | #endif |
50 | #include "version.h" | 50 | #include "version.h" |
51 | #include "time.h" | 51 | #include "time.h" |
52 | #include "gwps.h" | ||
52 | 53 | ||
53 | static const struct browse_folder_info config = {ROCKBOX_DIR, SHOW_CFG}; | 54 | static const struct browse_folder_info config = {ROCKBOX_DIR, SHOW_CFG}; |
54 | 55 | ||
@@ -142,6 +143,9 @@ enum infoscreenorder | |||
142 | INFO_DISK1, /* capacity or internal capacity/free on hotswap */ | 143 | INFO_DISK1, /* capacity or internal capacity/free on hotswap */ |
143 | INFO_DISK2, /* free space or external capacity/free on hotswap */ | 144 | INFO_DISK2, /* free space or external capacity/free on hotswap */ |
144 | INFO_BUFFER, | 145 | INFO_BUFFER, |
146 | #ifdef HAVE_ALBUMART | ||
147 | INFO_ALBUMART, | ||
148 | #endif | ||
145 | INFO_VERSION, | 149 | INFO_VERSION, |
146 | #if CONFIG_RTC | 150 | #if CONFIG_RTC |
147 | INFO_DATE, | 151 | INFO_DATE, |
@@ -279,6 +283,20 @@ static char* info_getname(int selected_item, void *data, | |||
279 | snprintf(buffer, buffer_len, SIZE_FMT, str(LANG_DISK_SIZE_INFO), s1); | 283 | snprintf(buffer, buffer_len, SIZE_FMT, str(LANG_DISK_SIZE_INFO), s1); |
280 | #endif | 284 | #endif |
281 | break; | 285 | break; |
286 | #ifdef HAVE_ALBUMART | ||
287 | case INFO_ALBUMART: /* album art dimenstions */ | ||
288 | if (gui_sync_wps_uses_albumart()) | ||
289 | { | ||
290 | snprintf(buffer, buffer_len, "%s %dx%d", str(LANG_ALBUMART), | ||
291 | gui_wps[0].data->albumart_max_width, | ||
292 | gui_wps[0].data->albumart_max_height); | ||
293 | } | ||
294 | else | ||
295 | { | ||
296 | snprintf(buffer, buffer_len, "%s %s", str(LANG_ALBUMART), | ||
297 | str(LANG_SET_BOOL_NO)); | ||
298 | } | ||
299 | #endif | ||
282 | } | 300 | } |
283 | return buffer; | 301 | return buffer; |
284 | } | 302 | } |
@@ -383,6 +401,20 @@ static int info_speak_item(int selected_item, void * data) | |||
383 | output_dyn_value(NULL, 0, info->size, kbyte_units, true); | 401 | output_dyn_value(NULL, 0, info->size, kbyte_units, true); |
384 | #endif | 402 | #endif |
385 | break; | 403 | break; |
404 | #ifdef HAVE_ALBUMART | ||
405 | case INFO_ALBUMART: /* album art dimenstions */ | ||
406 | if (gui_sync_wps_uses_albumart()) | ||
407 | { | ||
408 | talk_id(LANG_ALBUMART, false); | ||
409 | talk_value(gui_wps[0].data->albumart_max_width, UNIT_PIXEL, true); | ||
410 | talk_value(gui_wps[0].data->albumart_max_height, UNIT_PIXEL, true); | ||
411 | } | ||
412 | else | ||
413 | { | ||
414 | talk_id(LANG_ALBUMART, false); | ||
415 | talk_id(LANG_SET_BOOL_NO, true); | ||
416 | } | ||
417 | #endif | ||
386 | } | 418 | } |
387 | return 0; | 419 | return 0; |
388 | } | 420 | } |