Patched to compile on C89 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 12 Apr 2015 21:02:21 -0400
changeset 9556db92b9d74129
parent 9555 fff4b6354b99
child 9557 e05c7ad6ec57
Patched to compile on C89 compilers.
src/video/wayland/SDL_waylandevents.c
     1.1 --- a/src/video/wayland/SDL_waylandevents.c	Sun Apr 12 20:59:48 2015 -0400
     1.2 +++ b/src/video/wayland/SDL_waylandevents.c	Sun Apr 12 21:02:21 2015 -0400
     1.3 @@ -125,9 +125,9 @@
     1.4      SDL_WindowData *window = input->pointer_focus;
     1.5      input->sx_w = sx_w;
     1.6      input->sy_w = sy_w;
     1.7 -    int sx = wl_fixed_to_int(sx_w);
     1.8 -    int sy = wl_fixed_to_int(sy_w);
     1.9      if (input->pointer_focus) {
    1.10 +        const int sx = wl_fixed_to_int(sx_w);
    1.11 +        const int sy = wl_fixed_to_int(sy_w);
    1.12          SDL_SendMouseMotion(window->sdlwindow, 0, 0, sx, sy);
    1.13      }
    1.14  }