src/video/wayland/SDL_waylandvideo.c
changeset 9472 14813191e6cf
parent 9469 3f8d36ffd19d
child 9476 2928e95ffcaf
     1.1 --- a/src/video/wayland/SDL_waylandvideo.c	Wed Apr 08 01:37:17 2015 -0400
     1.2 +++ b/src/video/wayland/SDL_waylandvideo.c	Wed Apr 08 01:40:01 2015 -0400
     1.3 @@ -199,6 +199,7 @@
     1.4  static void
     1.5  Wayland_add_display(SDL_VideoData *d, uint32_t id)
     1.6  {
     1.7 +    struct wl_output *output;
     1.8      SDL_VideoDisplay *display = SDL_malloc(sizeof *display);
     1.9      if (!display) {
    1.10          SDL_OutOfMemory();
    1.11 @@ -206,7 +207,7 @@
    1.12      }
    1.13      SDL_zero(*display);
    1.14  
    1.15 -    struct wl_output *output = wl_registry_bind(d->registry, id, &wl_output_interface, 2);
    1.16 +    output = wl_registry_bind(d->registry, id, &wl_output_interface, 2);
    1.17      if (!output) {
    1.18          SDL_SetError("Failed to retrieve output.");
    1.19          return;