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 Mar 8, 2014
1 parent 0f1a72c commit 5755fa4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/video/mir/SDL_mirframebuffer.c
Expand Up @@ -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, &region);

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;
Expand Down

0 comments on commit 5755fa4

Please sign in to comment.