1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-06 05:44:11 +01:00

added RFillImage

This commit is contained in:
kojima
2000-03-09 22:22:41 +00:00
parent 9915c4ab2a
commit 150432ff95
3 changed files with 11 additions and 5 deletions

View File

@@ -128,10 +128,10 @@ RLoadPNG(RContext *context, char *file, int index)
}
/* normalize to 8bpp with alpha channel */
if (color_type == PNG_COLOR_TYPE_PALETTE && depth < 8)
if (color_type == PNG_COLOR_TYPE_PALETTE && depth <= 8)
png_set_expand(png);
if (color_type == PNG_COLOR_TYPE_GRAY && depth < 8)
if (color_type == PNG_COLOR_TYPE_GRAY && depth <= 8)
png_set_expand(png);
if (png_get_valid(png, pinfo, PNG_INFO_tRNS))