changeset 3419:e00d6ecb5d4b

Cursor hotspot fixes.
author Mike Gorchak <lestat@i.com.ua>
date Thu, 29 Oct 2009 09:20:50 +0000
parents fba883490f72
children 935f36ec1844
files src/video/photon/SDL_photon_input.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;