Made it more clear that the values being compared are floats

This commit is contained in:
Sam Lantinga
2018-12-06 09:09:05 -08:00
parent f9192ab8fc
commit 898644d18e
2 changed files with 2 additions and 2 deletions

View File

@@ -545,7 +545,7 @@ SDL_SendMouseWheel(SDL_Window * window, SDL_MouseID mouseID, float x, float y, S
SDL_SetMouseFocus(window);
}
if (x == 0. && y == 0.) {
if (x == 0.0f && y == 0.0f) {
return 0;
}