Patched to compile on C89 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 08 Mar 2014 15:34:54 -0500
changeset 83008393682d9d96
parent 8299 ee0d04aa70da
child 8301 f2042f560aa7
Patched to compile on C89 compilers.
src/video/mir/SDL_mirframebuffer.c
     1.1 --- a/src/video/mir/SDL_mirframebuffer.c	Sat Mar 08 15:32:12 2014 -0500
     1.2 +++ b/src/video/mir/SDL_mirframebuffer.c	Sat Mar 08 15:34:54 2014 -0500
     1.3 @@ -91,11 +91,13 @@
     1.4      MirGraphicsRegion region;
     1.5      int i, j, x, y, w, h, start;
     1.6      int bytes_per_pixel, bytes_per_row, s_stride, d_stride;
     1.7 +    char* s_dest;
     1.8 +    char* pixels;
     1.9  
    1.10      MIR_mir_surface_get_graphics_region(mir_window->surface, &region);
    1.11  
    1.12 -    char* s_dest = region.vaddr;
    1.13 -    char* pixels = (char*)window->surface->pixels;
    1.14 +    s_dest = region.vaddr;
    1.15 +    pixels = (char*)window->surface->pixels;
    1.16  
    1.17      s_stride = window->surface->pitch;
    1.18      d_stride = region.stride;