From 5b380a45d355f8c9614b4ff2dbce7c934618d065 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Mon, 11 May 2015 14:16:06 +0200 Subject: [PATCH] Canvas export transparency fix --- libsrc/ffdec_lib/src/com/jpexs/helpers/resource/canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/helpers/resource/canvas.js b/libsrc/ffdec_lib/src/com/jpexs/helpers/resource/canvas.js index 132f312ab..ce8aa6776 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/helpers/resource/canvas.js +++ b/libsrc/ffdec_lib/src/com/jpexs/helpers/resource/canvas.js @@ -852,7 +852,7 @@ var cxform = function (r_add, g_add, b_add, a_add, r_mult, g_mult, b_mult, a_mul d[0] = this._cut(Math.round(d[0] * this.r_mult / 255 + this.r_add), 0, 255); d[1] = this._cut(Math.round(d[1] * this.g_mult / 255 + this.g_add), 0, 255); d[2] = this._cut(Math.round(d[2] * this.b_mult / 255 + this.b_add), 0, 255); - d[3] = this._cut(Math.round(d[3] * this.a_mult / 255 + this.a_add / 255), 0, 1); + d[3] = this._cut(d[3] * this.a_mult / 255 + this.a_add / 255, 0, 1); return d; }; this.applyToImage = function (fimg) {