Skip to content

Commit

Permalink
Shrunk size and centered dirty overpainting box, since that's still t…
Browse files Browse the repository at this point in the history
…he slowest part of the visualizer.
  • Loading branch information
DanielVF committed Sep 9, 2010
1 parent 709a27b commit 7b4e06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/visualizer.js
Expand Up @@ -150,7 +150,7 @@ var Visualizer = {
ctx.fillText(fleet.numShips, disp_x, this.canvas.height - disp_y);
}

this.dirtyRegions.push([disp_x - 35 , this.canvas.height - disp_y - 35, 70, 70])
this.dirtyRegions.push([disp_x - 25 , this.canvas.height - disp_y - 35, 50, 50])
}

$(this.canvas).trigger('drawn');
Expand Down

0 comments on commit 7b4e06e

Please sign in to comment.