mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
fix jshint issue
This commit is contained in:
parent
ef8060c07d
commit
57936d90b1
@ -280,11 +280,13 @@
|
||||
if (gridWidth > 0) {
|
||||
// Scale out before drawing the grid.
|
||||
displayContext.scale(1 / z, 1 / z);
|
||||
// Clear vertical lines.
|
||||
for (var i = 1 ; i < frame.getWidth() ; i++) {
|
||||
displayContext.clearRect((i * z) - (gridWidth / 2), 0, gridWidth, h * z);
|
||||
}
|
||||
for (var i = 1 ; i < frame.getHeight() ; i++) {
|
||||
displayContext.clearRect(0, (i * z) - (gridWidth / 2), w * z, gridWidth);
|
||||
// Clear horizontal lines.
|
||||
for (var j = 1 ; j < frame.getHeight() ; j++) {
|
||||
displayContext.clearRect(0, (j * z) - (gridWidth / 2), w * z, gridWidth);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user