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