Skip to content

Commit 8df3631

Browse files
committed
Fix setGlobalAlpha
1 parent f8d1fa2 commit 8df3631

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Graphics/Canvas.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ exports.setGlobalCompositeOperationImpl = function(ctx) {
158158
exports.setGlobalAlpha = function(ctx) {
159159
return function(alpha) {
160160
return function() {
161-
ctx.setGlobalAlpha = alpha;
161+
ctx.globalAlpha = alpha;
162162
return ctx;
163163
};
164164
};
@@ -573,4 +573,3 @@ exports.bezierCurveTo = function(bCurve) {
573573
};
574574
};
575575
};
576-

0 commit comments

Comments
 (0)