Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix compiler warning in Cocoa touch code

  • Loading branch information
slouken committed Mar 3, 2013
1 parent a7dbf88 commit 21e5837d150d4a397f0a50b389179d15102fec78
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/video/cocoa/SDL_cocoawindow.m
@@ -408,14 +408,14 @@ - (void)handleTouches:(cocoaTouchType)type withEvent:(NSEvent *)event
enumerator = [touches objectEnumerator];
touch = (NSTouch*)[enumerator nextObject];
while (touch) {
const SDL_TouchID touchId = (SDL_TouchID)[touch device];
const SDL_TouchID touchId = (SDL_TouchID)(intptr_t)[touch device];
if (!SDL_GetTouch(touchId)) {
if (SDL_AddTouch(touchId, "") < 0) {
return;
}
}

const SDL_FingerID fingerId = (SDL_FingerID)[touch identity];
const SDL_FingerID fingerId = (SDL_FingerID)(intptr_t)[touch identity];
float x = [touch normalizedPosition].x;
float y = [touch normalizedPosition].y;
/* Make the origin the upper left instead of the lower left */

0 comments on commit 21e5837

Please sign in to comment.