Cursor hotspot fixes.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404144
This commit is contained in:
parent
1599f33522
commit
ef88f68a9d
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue