summaryrefslogtreecommitdiffstats
path: root/minui/resources.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-03-20 16:28:31 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-03-20 16:28:32 +0100
commitaa4545b5aedae165c8d2db0009dcdfa18e4f7923 (patch)
tree4efd22caccd76cf24d16ec3090c5d8729c425797 /minui/resources.c
parentMerge "add --shutdown_after option to recovery" (diff)
parentrestore minui support for paletted images with < 8 bits (diff)
downloadandroid_bootable_recovery-aa4545b5aedae165c8d2db0009dcdfa18e4f7923.tar
android_bootable_recovery-aa4545b5aedae165c8d2db0009dcdfa18e4f7923.tar.gz
android_bootable_recovery-aa4545b5aedae165c8d2db0009dcdfa18e4f7923.tar.bz2
android_bootable_recovery-aa4545b5aedae165c8d2db0009dcdfa18e4f7923.tar.lz
android_bootable_recovery-aa4545b5aedae165c8d2db0009dcdfa18e4f7923.tar.xz
android_bootable_recovery-aa4545b5aedae165c8d2db0009dcdfa18e4f7923.tar.zst
android_bootable_recovery-aa4545b5aedae165c8d2db0009dcdfa18e4f7923.zip
Diffstat (limited to '')
-rw-r--r--minui/resources.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/resources.c b/minui/resources.c
index a0c621b71..2bae4ded0 100644
--- a/minui/resources.c
+++ b/minui/resources.c
@@ -101,7 +101,7 @@ static int open_png(const char* name, png_structp* png_ptr, png_infop* info_ptr,
} else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_GRAY) {
// 1-, 2-, 4-, or 8-bit gray images: expand to 8-bit gray.
png_set_expand_gray_1_2_4_to_8(*png_ptr);
- } else if (bit_depth == 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_PALETTE) {
+ } else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_PALETTE) {
// paletted images: expand to 8-bit RGB. Note that we DON'T
// currently expand the tRNS chunk (if any) to an alpha
// channel, because minui doesn't support alpha channels in