Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Cursor hotspot fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
llmike committed Oct 29, 2009
1 parent 99770ad commit 685dcb6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/photon/SDL_photon_input.c
Expand Up @@ -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;
Expand Down

0 comments on commit 685dcb6

Please sign in to comment.