Merge "app: aboot: allow LK logo image to have size lesser than FB"
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index a20bb86..f21d9b4 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -3218,8 +3218,8 @@
return 0;
}
- if ((header->width != fb_display->width) || (header->height != fb_display->height)) {
- dprintf(CRITICAL, "Logo config doesn't match with fb config. Fall back default logo\n");
+ if ((header->width > fb_display->width) || (header->height > fb_display->height)) {
+ dprintf(CRITICAL, "Logo config greater than fb config. Fall back default logo\n");
return -1;
}
@@ -3305,8 +3305,8 @@
fbcon_extract_to_screen(header, (base + LOGO_IMG_HEADER_SIZE));
} else { /* 2 Raw BGR data */
- if ((header->width != fb_display->width) || (header->height != fb_display->height)) {
- dprintf(CRITICAL, "Logo config doesn't match with fb config. Fall back default logo\n");
+ if ((header->width > fb_display->width) || (header->height > fb_display->height)) {
+ dprintf(CRITICAL, "Logo config greater than fb config. Fall back default logo\n");
return -1;
}