mirror of https://github.com/encounter/SDL.git
testmouse: add explicit int-cast to avoid warning about converting `float` to `int`
Emitted by MSVC
This commit is contained in:
parent
3c251ec41e
commit
8770689525
|
@ -202,10 +202,10 @@ loop(void *arg)
|
||||||
/* Mouse wheel */
|
/* Mouse wheel */
|
||||||
SDL_SetRenderDrawColor(renderer, 0, 255, 128, 255);
|
SDL_SetRenderDrawColor(renderer, 0, 255, 128, 255);
|
||||||
if (wheel_x_active) {
|
if (wheel_x_active) {
|
||||||
SDL_RenderDrawLine(renderer, wheel_x, 0, wheel_x, SCREEN_HEIGHT);
|
SDL_RenderDrawLine(renderer, (int)wheel_x, 0, (int)wheel_x, SCREEN_HEIGHT);
|
||||||
}
|
}
|
||||||
if (wheel_y_active) {
|
if (wheel_y_active) {
|
||||||
SDL_RenderDrawLine(renderer, 0, wheel_y, SCREEN_WIDTH, wheel_y);
|
SDL_RenderDrawLine(renderer, 0, (int)wheel_y, SCREEN_WIDTH, (int)wheel_y);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Objects from mouse clicks */
|
/* Objects from mouse clicks */
|
||||||
|
|
Loading…
Reference in New Issue