8000 fix Mask.overlapMask() broken with last refactor · GameJs/gamejs@707dc7a · GitHub
[go: up one dir, main page]

Skip to content

Commit 707dc7a

Browse files
committed
fix Mask.overlapMask() broken with last refactor
1 parent 4b9b8de commit 707dc7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gamejs/pixelcollision.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Mask.prototype.overlapMask = function(otherMask, offset) {
164164
brect.moveIp(offset);
165165
}
166166

167-
var mask = new Mask([overlapRect.width, overlapRect.height]);
167+
var mask = new Mask(new gamejs.graphics.Surface([overlapRect.width, overlapRect.height]));
168168
var x,y;
169169
for (y=overlapRect.top; y<=overlapRect.bottom; y++) {
170170
for (x=overlapRect.left; x<=overlapRect.right; x++) {

0 commit comments

Comments
 (0)
0