forked from arne/asdf-games
Fixed issue in CanvasRenderer
This commit is contained in:
parent
6db704f2c8
commit
fb3aa86e1d
@ -76,12 +76,12 @@ class CanvasRenderer {
|
||||
0, 0,
|
||||
child.width, child.height
|
||||
);
|
||||
} else if (child.style && child.w && child.h) {
|
||||
ctx.fillStyle = child.style.fill;
|
||||
ctx.fillRect(0, 0, child.w, child.h);
|
||||
} else {
|
||||
ctx.drawImage(img, 0, 0);
|
||||
}
|
||||
} else if (child.style && child.w && child.h) {
|
||||
ctx.fillStyle = child.style.fill;
|
||||
ctx.fillRect(0, 0, child.w, child.h);
|
||||
}
|
||||
|
||||
// Handle children with children
|
||||
|
Loading…
Reference in New Issue
Block a user