Made it more clear that the values being compared are floats
This commit is contained in:
parent
b1147bd31e
commit
d3d9a9ddd0
2 changed files with 2 additions and 2 deletions
|
@ -545,7 +545,7 @@ SDL_SendMouseWheel(SDL_Window * window, SDL_MouseID mouseID, float x, float y, S
|
||||||
SDL_SetMouseFocus(window);
|
SDL_SetMouseFocus(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x == 0. && y == 0.) {
|
if (x == 0.0f && y == 0.0f) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -315,7 +315,7 @@ SDL_SendTouchMotion(SDL_TouchID id, SDL_FingerID fingerid,
|
||||||
prel = pressure - finger->pressure;
|
prel = pressure - finger->pressure;
|
||||||
|
|
||||||
/* Drop events that don't change state */
|
/* Drop events that don't change state */
|
||||||
if (xrel == 0. && yrel == 0. && prel == 0.) {
|
if (xrel == 0.0f && yrel == 0.0f && prel == 0.0f) {
|
||||||
#if 0
|
#if 0
|
||||||
printf("Touch event didn't change state - dropped!\n");
|
printf("Touch event didn't change state - dropped!\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue