Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
render: Fixed compiler warning about implicit cast.
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
src/render/SDL_render.c
|
@@ -664,13 +664,13 @@ SDL_RendererEventWatch(void *userdata, SDL_Event *event) |
|
|
float rel = renderer->xrel + event->motion.xrel / (scale.x * renderer->dpi_scale.x); |
|
|
float trunc = SDL_truncf(rel); |
|
|
renderer->xrel = rel - trunc; |
|
|
event->motion.xrel = trunc; |
|
|
event->motion.xrel = (Sint32) trunc; |
|
|
} |
|
|
if (event->motion.yrel != 0 && renderer->relative_scaling) { |
|
|
float rel = renderer->yrel + event->motion.yrel / (scale.y * renderer->dpi_scale.y); |
|
|
float trunc = SDL_truncf(rel); |
|
|
renderer->yrel = rel - trunc; |
|
|
event->motion.yrel = trunc; |
|
|
event->motion.yrel = (Sint32) trunc; |
|
|
} |
|
|
} |
|
|
} |
|
|