diff options
Diffstat (limited to 'apps/gui/skin_engine/wps_parser.c')
-rw-r--r-- | apps/gui/skin_engine/wps_parser.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/apps/gui/skin_engine/wps_parser.c b/apps/gui/skin_engine/wps_parser.c index 1a903c98ec..c37cd786ec 100644 --- a/apps/gui/skin_engine/wps_parser.c +++ b/apps/gui/skin_engine/wps_parser.c | |||
@@ -1635,26 +1635,15 @@ static bool load_wps_bitmaps(struct wps_data *wps_data, char *bmpdir) | |||
1635 | #if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1)) | 1635 | #if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1)) |
1636 | if (bmp_names[BACKDROP_BMP]) | 1636 | if (bmp_names[BACKDROP_BMP]) |
1637 | { | 1637 | { |
1638 | int screen = SCREEN_MAIN; | ||
1638 | get_image_filename(bmp_names[BACKDROP_BMP], bmpdir, | 1639 | get_image_filename(bmp_names[BACKDROP_BMP], bmpdir, |
1639 | img_path, sizeof(img_path)); | 1640 | img_path, sizeof(img_path)); |
1640 | |||
1641 | #if defined(HAVE_REMOTE_LCD) | 1641 | #if defined(HAVE_REMOTE_LCD) |
1642 | /* We only need to check LCD type if there is a remote LCD */ | 1642 | /* We only need to check LCD type if there is a remote LCD */ |
1643 | if (!wps_data->remote_wps) | 1643 | if (wps_data->remote_wps) |
1644 | #endif | 1644 | screen = SCREEN_REMOTE; |
1645 | { | ||
1646 | /* Load backdrop for the main LCD */ | ||
1647 | if (!load_wps_backdrop(img_path)) | ||
1648 | return false; | ||
1649 | } | ||
1650 | #if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1 | ||
1651 | else | ||
1652 | { | ||
1653 | /* Load backdrop for the remote LCD */ | ||
1654 | if (!load_remote_wps_backdrop(img_path)) | ||
1655 | return false; | ||
1656 | } | ||
1657 | #endif | 1645 | #endif |
1646 | screens[screen].backdrop_load(BACKDROP_SKIN_WPS, img_path); | ||
1658 | } | 1647 | } |
1659 | #endif /* has backdrop support */ | 1648 | #endif /* has backdrop support */ |
1660 | 1649 | ||