Mercurial > hg > ucis.core
diff FBGUI/FBGUI.cs @ 42:aedd0e4adef7
FBGUI: Small cleanup
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 01 May 2013 23:44:43 +0200 |
parents | e3329f686b95 |
children | 82290dc1403c |
line wrap: on
line diff
--- a/FBGUI/FBGUI.cs Thu Apr 25 23:40:55 2013 +0200 +++ b/FBGUI/FBGUI.cs Wed May 01 23:44:43 2013 +0200 @@ -756,9 +756,9 @@ public virtual new void Paint(Graphics g) { HandleEvent(new FBGPaintEvent(g)); if (cursor != null) { - Point r = CursorPosition; - r.Offset(-cursor.Hotspot.X, -cursor.Hotspot.Y); - g.DrawImage(cursor.Image, new Rectangle(r, cursor.Size)); + Rectangle r = cursor.Area; + r.Offset(cursorposition); + g.DrawImage(cursor.Image, r); } } protected override void HandlePointingCaptureMessage(IFBGControl sender, FBGPointingCaptureMessage e) {