Fix overlayFrame reference

This commit is contained in:
Vince 2012-09-08 15:21:22 +02:00
parent 9d5e2dc2d3
commit cc22a26933
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@
this.startRow = row; this.startRow = row;
// Drawing the first point of the rectangle in the fake overlay canvas: // 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(); drawer.renderOverlay();
}; };
@ -42,7 +42,7 @@
if(color == Constants.TRANSPARENT_COLOR) { if(color == Constants.TRANSPARENT_COLOR) {
color = Constants.SELECTION_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(); drawer.renderOverlay();
}; };

View File

@ -34,7 +34,7 @@
// The fake canvas where we will draw the preview of the stroke: // The fake canvas where we will draw the preview of the stroke:
// Drawing the first point of the stroke in the fake overlay canvas: // 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(); drawer.renderOverlay();
}; };
@ -57,7 +57,7 @@
// eg deleting the equivalent of a stroke. // eg deleting the equivalent of a stroke.
color = Constants.SELECTION_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(); drawer.renderOverlay();
}; };