Cursor hotspot fixes.
authorMike Gorchak <lestat@i.com.ua>
Thu, 29 Oct 2009 09:20:50 +0000
changeset 3419 e00d6ecb5d4b
parent 3418 fba883490f72
child 3420 935f36ec1844
Cursor hotspot fixes.
src/video/photon/SDL_photon_input.c
--- a/src/video/photon/SDL_photon_input.c	Wed Oct 28 06:08:48 2009 +0000
+++ b/src/video/photon/SDL_photon_input.c	Thu Oct 29 09:20:50 2009 +0000
@@ -162,10 +162,10 @@
     internal_cursor->size1.y = surface->h;
     internal_cursor->size2.x = surface->w;
     internal_cursor->size2.y = surface->h;
-    internal_cursor->offset1.x = hot_x;
-    internal_cursor->offset1.y = hot_y;
-    internal_cursor->offset2.x = hot_x;
-    internal_cursor->offset2.y = hot_y;
+    internal_cursor->offset1.x = -hot_x;
+    internal_cursor->offset1.y = -hot_y;
+    internal_cursor->offset2.x = -hot_x;
+    internal_cursor->offset2.y = -hot_y;
     internal_cursor->bytesperline1 = ((surface->w + 7) >> 3);
     internal_cursor->bytesperline2 = ((surface->w + 7) >> 3);
     internal_cursor->color1 = (SDL_PHOTON_MOUSE_COLOR_BLACK) & 0x00FFFFFF;