Fixed various type and print format issues

This commit is contained in:
Sam Lantinga 2010-07-31 20:38:37 -07:00
parent 39ee818f98
commit b7caec8ae2
5 changed files with 37 additions and 18 deletions

View file

@ -393,7 +393,7 @@ SDL_SendTouchMotion(SDL_TouchID id, SDL_FingerID fingerid, int relative,
Uint16 x = (xin+touch->x_min)*(touch->xres)/(touch->native_xres);
Uint16 y = (yin+touch->y_min)*(touch->yres)/(touch->native_yres);
Uint16 pressure = (yin+touch->pressure_min)*(touch->pressureres)/(touch->native_pressureres);
printf("(%f,%f) --> (%i,%i)",xin,yin,x,y);
printf("(%f,%f) --> (%i,%i)\n",xin,yin,x,y);
if(touch->flush_motion) {
return 0;
}

View file

@ -315,7 +315,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
if (SDL_AddTouch(&touch, "") < 0) {
continue;
}
printf("Success, added touch: %lin",touchId);
printf("Success, added touch: %li\n",touchId);
}
float x = [touch normalizedPosition].x;
float y = [touch normalizedPosition].y;