Permalink
Browse files

fix slowness in long hand drawing

  • Loading branch information...
1 parent 5d14163 commit 9e225e07303b734139c126c7caa15780dcf9b811 @NotFound committed Dec 11, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 examples/pizarra.winxed
View
@@ -670,12 +670,14 @@ class Board : ChildWindow
case HANDLINE:
var line = self.line;
if (line == null) {
- self.line = line = new HandLine(self.colorspec);
+ string colorspec = self.colorspec;
+ self.line = line = new HandLine(colorspec);
self.listline.push(line);
line.push(oldx, oldy);
+ self.SetForeground(self.display.ParseColor(colorspec));
}
line.push(x - oldx, y - oldy);
- line.draw(self);
+ self.DrawLine(oldx, oldy, x, y);
break;
case LINE:
self.hintline(self.initx, self.inity, oldx, oldy);

0 comments on commit 9e225e0

Please sign in to comment.