Fixed compiler warning on 32-bit Mac OS X.
This commit is contained in:
parent
1ee4e6dc4f
commit
35ef24dd77
1 changed files with 2 additions and 2 deletions
|
@ -401,7 +401,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
|
|||
enumerator = [touches objectEnumerator];
|
||||
touch = (NSTouch*)[enumerator nextObject];
|
||||
while (touch) {
|
||||
SDL_TouchID touchId = (SDL_TouchID)[touch device];
|
||||
const SDL_TouchID touchId = (SDL_TouchID) ((size_t) [touch device]);
|
||||
if (!SDL_GetTouch(touchId)) {
|
||||
SDL_Touch touch;
|
||||
|
||||
|
@ -421,7 +421,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
|
|||
}
|
||||
}
|
||||
|
||||
SDL_FingerID fingerId = (SDL_FingerID)[touch identity];
|
||||
const SDL_FingerID fingerId = (SDL_FingerID) ((size_t) [touch identity]);
|
||||
float x = [touch normalizedPosition].x;
|
||||
float y = [touch normalizedPosition].y;
|
||||
/* Make the origin the upper left instead of the lower left */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue