aboutsummaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-03-20 16:31:33 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-20 16:31:33 +0000
commit03008bc1e89a780e382abe0567e709daecce92ff (patch)
tree0ad748c243950af46add0af5dbe60a5d8d7159e6 /minui
parent0300247758cf1965867128c79d94e0b2c38a69aa (diff)
parentaa4545b5aedae165c8d2db0009dcdfa18e4f7923 (diff)
downloadbootable_recovery-03008bc1e89a780e382abe0567e709daecce92ff.zip
bootable_recovery-03008bc1e89a780e382abe0567e709daecce92ff.tar.gz
bootable_recovery-03008bc1e89a780e382abe0567e709daecce92ff.tar.bz2
am aa4545b5: Merge "restore minui support for paletted images with < 8 bits"
* commit 'aa4545b5aedae165c8d2db0009dcdfa18e4f7923': restore minui support for paletted images with < 8 bits
Diffstat (limited to 'minui')
-rw-r--r--minui/resources.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/resources.c b/minui/resources.c
index a0c621b..2bae4de 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