diff options
Diffstat (limited to 'libdimension/png.c')
-rw-r--r-- | libdimension/png.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/png.c b/libdimension/png.c index 9ff2afc..7a327d6 100644 --- a/libdimension/png.c +++ b/libdimension/png.c @@ -94,7 +94,7 @@ dmnsn_png_optimizer_fn(const dmnsn_canvas *canvas, pixel[2] = sRGB.B*UINT16_MAX; } - double alpha = color.filter + color.trans; + double alpha = dmnsn_color_intensity(color)*color.filter + color.trans; if (alpha <= 0.0) { pixel[3] = 0; } else if (alpha >= 1.0) { |