changeset 42:aedd0e4adef7

FBGUI: Small cleanup
author Ivo Smits <Ivo@UCIS.nl>
date Wed, 01 May 2013 23:44:43 +0200
parents 3fddcf72ea6a
children 29cf42a12c34
files FBGUI/FBGUI.cs
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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) {