Skip to content

Commit

Permalink
bigger cursor in example pokedit
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound committed Dec 12, 2011
1 parent 424f9ff commit ab55756
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/pokedit.winxed
Expand Up @@ -332,13 +332,12 @@ class TextWindow : ChildWindow
int curline = self.curline; int curline = self.curline;
int curpos = self.curpos; int curpos = self.curpos;
int lineheight = self.lineheight; int lineheight = self.lineheight;
int ascent = self.ascent;
int headline = self.headline; int headline = self.headline;
int ypos = (curline - headline) * lineheight + MARGINSUP; int ypos = (curline - headline) * lineheight + MARGINSUP;
string line = text[curline]; string line = text[curline];
int xpos = self.getTextxOff(substr(line, 0, curpos)) + MARGINLEFT; int xpos = self.getTextxOff(substr(line, 0, curpos)) + MARGINLEFT;
self.SetFunction(GXinvert); self.SetFunction(GXinvert);
self.DrawLine(xpos, ypos, xpos, ypos + ascent); self.FillRectangle(xpos, ypos, 2, lineheight);
self.SetFunction(GXcopy); self.SetFunction(GXcopy);
} }
function drawall() function drawall()
Expand Down

0 comments on commit ab55756

Please sign in to comment.