mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-29 20:27:12 +01:00
Patched to compile on C89 compilers.
This commit is contained in:
parent
0f1a72c012
commit
5755fa4b9e
@ -91,11 +91,13 @@ MIR_UpdateWindowFramebuffer(_THIS, SDL_Window* window,
|
|||||||
MirGraphicsRegion region;
|
MirGraphicsRegion region;
|
||||||
int i, j, x, y, w, h, start;
|
int i, j, x, y, w, h, start;
|
||||||
int bytes_per_pixel, bytes_per_row, s_stride, d_stride;
|
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);
|
MIR_mir_surface_get_graphics_region(mir_window->surface, ®ion);
|
||||||
|
|
||||||
char* s_dest = region.vaddr;
|
s_dest = region.vaddr;
|
||||||
char* pixels = (char*)window->surface->pixels;
|
pixels = (char*)window->surface->pixels;
|
||||||
|
|
||||||
s_stride = window->surface->pitch;
|
s_stride = window->surface->pitch;
|
||||||
d_stride = region.stride;
|
d_stride = region.stride;
|
||||||
|
Loading…
Reference in New Issue
Block a user