From cc22a2693397b4577508e720460ff73156179d76 Mon Sep 17 00:00:00 2001 From: Vince Date: Sat, 8 Sep 2012 15:21:22 +0200 Subject: [PATCH] Fix overlayFrame reference --- js/drawingtools/Rectangle.js | 4 ++-- js/drawingtools/Stroke.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/drawingtools/Rectangle.js b/js/drawingtools/Rectangle.js index 87709026..36967878 100644 --- a/js/drawingtools/Rectangle.js +++ b/js/drawingtools/Rectangle.js @@ -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(); }; diff --git a/js/drawingtools/Stroke.js b/js/drawingtools/Stroke.js index 92bb8450..13dabac3 100644 --- a/js/drawingtools/Stroke.js +++ b/js/drawingtools/Stroke.js @@ -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(); };