From 3a0270593e9ba51141654c1ce137f03e77dd6c49 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 12 Apr 2015 21:02:21 -0400 Subject: [PATCH] Patched to compile on C89 compilers. --- src/video/wayland/SDL_waylandevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c index 3c44ba44d..929aa72a1 100644 --- a/src/video/wayland/SDL_waylandevents.c +++ b/src/video/wayland/SDL_waylandevents.c @@ -125,9 +125,9 @@ pointer_handle_motion(void *data, struct wl_pointer *pointer, SDL_WindowData *window = input->pointer_focus; input->sx_w = sx_w; input->sy_w = sy_w; - int sx = wl_fixed_to_int(sx_w); - int sy = wl_fixed_to_int(sy_w); if (input->pointer_focus) { + const int sx = wl_fixed_to_int(sx_w); + const int sy = wl_fixed_to_int(sy_w); SDL_SendMouseMotion(window->sdlwindow, 0, 0, sx, sy); } }