Mercurial > sdl-ios-xcode
comparison src/video/photon/SDL_photon_input.c @ 3419:e00d6ecb5d4b
Cursor hotspot fixes.
author | Mike Gorchak <lestat@i.com.ua> |
---|---|
date | Thu, 29 Oct 2009 09:20:50 +0000 |
parents | 7f684f249ec9 |
children | 4b594623401b |
comparison
equal
deleted
inserted
replaced
3418:fba883490f72 | 3419:e00d6ecb5d4b |
---|---|
160 internal_cursor->hdr.type = Ph_RDATA_CURSOR; | 160 internal_cursor->hdr.type = Ph_RDATA_CURSOR; |
161 internal_cursor->size1.x = surface->w; | 161 internal_cursor->size1.x = surface->w; |
162 internal_cursor->size1.y = surface->h; | 162 internal_cursor->size1.y = surface->h; |
163 internal_cursor->size2.x = surface->w; | 163 internal_cursor->size2.x = surface->w; |
164 internal_cursor->size2.y = surface->h; | 164 internal_cursor->size2.y = surface->h; |
165 internal_cursor->offset1.x = hot_x; | 165 internal_cursor->offset1.x = -hot_x; |
166 internal_cursor->offset1.y = hot_y; | 166 internal_cursor->offset1.y = -hot_y; |
167 internal_cursor->offset2.x = hot_x; | 167 internal_cursor->offset2.x = -hot_x; |
168 internal_cursor->offset2.y = hot_y; | 168 internal_cursor->offset2.y = -hot_y; |
169 internal_cursor->bytesperline1 = ((surface->w + 7) >> 3); | 169 internal_cursor->bytesperline1 = ((surface->w + 7) >> 3); |
170 internal_cursor->bytesperline2 = ((surface->w + 7) >> 3); | 170 internal_cursor->bytesperline2 = ((surface->w + 7) >> 3); |
171 internal_cursor->color1 = (SDL_PHOTON_MOUSE_COLOR_BLACK) & 0x00FFFFFF; | 171 internal_cursor->color1 = (SDL_PHOTON_MOUSE_COLOR_BLACK) & 0x00FFFFFF; |
172 internal_cursor->color2 = (SDL_PHOTON_MOUSE_COLOR_WHITE) & 0x00FFFFFF; | 172 internal_cursor->color2 = (SDL_PHOTON_MOUSE_COLOR_WHITE) & 0x00FFFFFF; |
173 | 173 |