From 5755fa4b9eb7728dbda27628d99f6e0b89a0ee37 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 8 Mar 2014 15:34:54 -0500 Subject: [PATCH] Patched to compile on C89 compilers. --- src/video/mir/SDL_mirframebuffer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/video/mir/SDL_mirframebuffer.c b/src/video/mir/SDL_mirframebuffer.c index 22f290b91..f8b46649a 100644 --- a/src/video/mir/SDL_mirframebuffer.c +++ b/src/video/mir/SDL_mirframebuffer.c @@ -91,11 +91,13 @@ MIR_UpdateWindowFramebuffer(_THIS, SDL_Window* window, MirGraphicsRegion region; int i, j, x, y, w, h, start; int bytes_per_pixel, bytes_per_row, s_stride, d_stride; + char* s_dest; + char* pixels; MIR_mir_surface_get_graphics_region(mir_window->surface, ®ion); - char* s_dest = region.vaddr; - char* pixels = (char*)window->surface->pixels; + s_dest = region.vaddr; + pixels = (char*)window->surface->pixels; s_stride = window->surface->pitch; d_stride = region.stride;