Skip to content

Commit 87fca06

Browse files
authored
Fix clearColor not applied to correct mini-map canvas dimensions
1 parent da53786 commit 87fca06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/impact/debug/maps-panel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ ig.DebugMapsPanel = ig.DebugPanel.extend({
8383

8484
if( ig.game.clearColor ) {
8585
ctx.fillStyle = ig.game.clearColor;
86-
ctx.fillRect(0, 0, w, h);
86+
ctx.fillRect(0, 0, mapCanvas.width, mapCanvas.height);
8787
}
8888

8989
// draw the map
@@ -153,4 +153,4 @@ ig.debug.addPanel({
153153
});
154154

155155

156-
});
156+
});

0 commit comments

Comments
 (0)