Commit ef88f68a authored by Mike Gorchak's avatar Mike Gorchak

Cursor hotspot fixes.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404144
parent 1599f335
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment