diff options
Diffstat (limited to 'apps/gui/wps_parser.c')
-rw-r--r-- | apps/gui/wps_parser.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index 55b4ed9cae..c645728516 100644 --- a/apps/gui/wps_parser.c +++ b/apps/gui/wps_parser.c | |||
@@ -1429,17 +1429,24 @@ static bool load_wps_bitmaps(struct wps_data *wps_data, char *bmpdir) | |||
1429 | { | 1429 | { |
1430 | get_image_filename(bmp_names[BACKDROP_BMP], bmpdir, | 1430 | get_image_filename(bmp_names[BACKDROP_BMP], bmpdir, |
1431 | img_path, sizeof(img_path)); | 1431 | img_path, sizeof(img_path)); |
1432 | #ifdef HAVE_REMOTE_LCD | 1432 | |
1433 | if (wps_data->remote_wps) | 1433 | #if defined(HAVE_REMOTE_LCD) |
1434 | #if LCD_REMOTE_DEPTH > 1 | 1434 | /* We only need to check LCD type if there is a remote LCD */ |
1435 | if (!load_remote_wps_backdrop(img_path)) | 1435 | if (!wps_data->remote_wps) |
1436 | return false | ||
1437 | #endif | 1436 | #endif |
1438 | ; | 1437 | { |
1439 | else | 1438 | /* Load backdrop for the main LCD */ |
1440 | #endif /* HAVE_REMOTE_LCD */ | ||
1441 | if (!load_wps_backdrop(img_path)) | 1439 | if (!load_wps_backdrop(img_path)) |
1442 | return false; | 1440 | return false; |
1441 | } | ||
1442 | #if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1 | ||
1443 | else | ||
1444 | { | ||
1445 | /* Load backdrop for the remote LCD */ | ||
1446 | if (!load_remote_wps_backdrop(img_path)) | ||
1447 | return false; | ||
1448 | } | ||
1449 | #endif | ||
1443 | } | 1450 | } |
1444 | #endif /* has backdrop support */ | 1451 | #endif /* has backdrop support */ |
1445 | 1452 | ||