Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
set selection_canvas size
  • Loading branch information
odyssomay committed Nov 9, 2011
1 parent 361c91b commit d8faece
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/core.js
Expand Up @@ -566,6 +566,9 @@ _JUNK_ = function() {
selection_canvas_ctx = selection_canvas.getContext('2d');
const selection_area = document.getElementById('selection_area');

selection_canvas.setAttribute('width', canvas.width);
selection_canvas.setAttribute('height', canvas.height);

selection_canvas_ctx.fillStyle = 'rgba(0, 0, 0, 0.5)';
selection_canvas_ctx.strokeStyle = 'rgba(255, 255, 255, 0.8)';
const draw_rect = function(x1,y1,x2,y2) {
Expand Down

0 comments on commit d8faece

Please sign in to comment.