mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix overlayFrame reference
This commit is contained in:
parent
9d5e2dc2d3
commit
cc22a26933
@ -24,7 +24,7 @@
|
||||
this.startRow = row;
|
||||
|
||||
// Drawing the first point of the rectangle in the fake overlay canvas:
|
||||
drawer.overlay.setPixel(col, row, color);
|
||||
drawer.overlayFrame.setPixel(col, row, color);
|
||||
drawer.renderOverlay();
|
||||
};
|
||||
|
||||
@ -42,7 +42,7 @@
|
||||
if(color == Constants.TRANSPARENT_COLOR) {
|
||||
color = Constants.SELECTION_TRANSPARENT_COLOR;
|
||||
}
|
||||
drawer.overlay.setPixel(strokePoints[i].col, strokePoints[i].row, color);
|
||||
drawer.overlayFrame.setPixel(strokePoints[i].col, strokePoints[i].row, color);
|
||||
}
|
||||
drawer.renderOverlay();
|
||||
};
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
// The fake canvas where we will draw the preview of the stroke:
|
||||
// Drawing the first point of the stroke in the fake overlay canvas:
|
||||
drawer.overlay.setPixel(col, row, color);
|
||||
drawer.overlayFrame.setPixel(col, row, color);
|
||||
drawer.renderOverlay();
|
||||
};
|
||||
|
||||
@ -57,7 +57,7 @@
|
||||
// eg deleting the equivalent of a stroke.
|
||||
color = Constants.SELECTION_TRANSPARENT_COLOR;
|
||||
}
|
||||
drawer.overlay.setPixel(strokePoints[i].col, strokePoints[i].row, color);
|
||||
drawer.overlayFrame.setPixel(strokePoints[i].col, strokePoints[i].row, color);
|
||||
}
|
||||
drawer.renderOverlay();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user