From 685dcb64835bfd40fd430b0e28a78a12a012527f Mon Sep 17 00:00:00 2001 From: Mike Gorchak Date: Thu, 29 Oct 2009 09:20:50 +0000 Subject: [PATCH] Cursor hotspot fixes. --- src/video/photon/SDL_photon_input.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/photon/SDL_photon_input.c b/src/video/photon/SDL_photon_input.c index c0d554208..ac2ff1e0e 100644 --- a/src/video/photon/SDL_photon_input.c +++ b/src/video/photon/SDL_photon_input.c @@ -162,10 +162,10 @@ photon_createcursor(SDL_Surface * surface, int hot_x, int hot_y) 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;