Skip to content

Commit f4def33

Browse files
committed
fix color in poly hint
1 parent 4094224 commit f4def33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/pizarra.winxed

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ class Board : ChildWindow
605605
var oldx;
606606
var oldy;
607607
var colorspec;
608+
var hintcolor;
608609
var menu;
609610
var grid;
610611
function Board(parent, int x, int y, int width, int height)
@@ -619,6 +620,7 @@ class Board : ChildWindow
619620
self.oldx = 0;
620621
self.oldy = 0;
621622
self.colorspec = "black";
623+
self.hintcolor = self.display.ParseColor("black");
622624
self.grid = 0;
623625

624626
self.OnExpose += evhandler(self, "onexpose");
@@ -704,6 +706,7 @@ class Board : ChildWindow
704706
l.draw(self);
705707
break;
706708
case POLY:
709+
self.SetForeground(self.hintcolor);
707710
self.DrawLine(initx, inity, oldx, oldy);
708711
break;
709712
case FILLPOLY:

0 commit comments

Comments
 (0)