# HG changeset patch # User Mike Gorchak # Date 1256808050 0 # Node ID e00d6ecb5d4bd890e0822ee720ed3ae4b44414e8 # Parent fba883490f725b516b33814987fe7a33aa9df49f Cursor hotspot fixes. diff -r fba883490f72 -r e00d6ecb5d4b 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;