From: The Android Open Source Project Date: Tue, 3 Mar 2009 22:04:24 +0000 (-0800) Subject: auto import from //depot/cupcake/@132589 X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/34bce97e1acf6d542c1a2e273cb9895a8f884e64 auto import from //depot/cupcake/@132589 --- diff --git a/Images.cpp b/Images.cpp index edb12ea..4c776fb 100644 --- a/Images.cpp +++ b/Images.cpp @@ -859,14 +859,6 @@ static void write_png(const char* imageName, analyze_image(imageName, imageInfo, grayscaleTolerance, rgbPalette, alphaPalette, &paletteEntries, &hasTransparency, &color_type, outRows); - - // If the image is a 9-patch, we need to preserve it as a ARGB file to make - // sure the pixels will not be pre-dithered/clamped until we decide they are - if (imageInfo.is9Patch && (color_type == PNG_COLOR_TYPE_RGB || - color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_PALETTE)) { - color_type = PNG_COLOR_TYPE_RGB_ALPHA; - } - switch (color_type) { case PNG_COLOR_TYPE_PALETTE: NOISY(printf("Image %s has %d colors%s, using PNG_COLOR_TYPE_PALETTE\n",