From 9a09f1165068627689e2236876282be6fee047d3 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Thu, 6 Sep 2012 00:40:27 +0200 Subject: [PATCH] oh well ... --- js/drawingtools/Stroke.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/drawingtools/Stroke.js b/js/drawingtools/Stroke.js index 95da2b7e..a592fde2 100644 --- a/js/drawingtools/Stroke.js +++ b/js/drawingtools/Stroke.js @@ -57,7 +57,7 @@ // eg deleting the equivalent of a stroke. color = Constants.SELECTION_TRANSPARENT_COLOR; } - drawer.updateOverlay(strokePoints[i].col, strokePoints[i].row, color); + drawer.overlay.setPixel(strokePoints[i].col, strokePoints[i].row, color); } drawer.renderOverlay(); }; @@ -74,7 +74,7 @@ var strokePoints = this.getLinePixels_(this.startCol, col, this.startRow, row); for(var i = 0; i< strokePoints.length; i++) { // Change model: - drawer.updateFrame(strokePoints[i].col, strokePoints[i].row, color); + drawer.frame.setPixel(strokePoints[i].col, strokePoints[i].row, color); } // Draw in canvas: // TODO: Remove that when we have the centralized redraw loop