Skip to content

Commit

Permalink
Patched to compile on C89 compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 13, 2015
1 parent c539b3f commit 3a02705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/wayland/SDL_waylandevents.c
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 3a02705

Please sign in to comment.