26 #include "../../SDL_internal.h"
28 #if SDL_VIDEO_DRIVER_MIR
66 MirGraphicsRegion region;
69 int bytes_per_pixel, bytes_per_row, s_stride, d_stride;
73 bs = MIR_mir_window_get_buffer_stream(mir_window->
window);
74 MIR_mir_buffer_stream_get_graphics_region(bs, ®ion);
76 s_dest = region.vaddr;
80 d_stride = region.stride;
83 for (i = 0; i < numrects; i++) {
84 s_dest = region.vaddr;
92 if (w <= 0 || h <= 0 || (x + w) <= 0 || (y +
h) <= 0)
105 if (x + w > window->
w)
107 if (y + h > window->
h)
110 start = y * s_stride +
x;
114 bytes_per_row = bytes_per_pixel *
w;
115 for (j = 0; j <
h; j++) {
122 MIR_mir_buffer_stream_swap_buffers_sync(bs);