Ubuntu Pastebin

Paste from bschaefer at Thu, 28 May 2015 20:21:24 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
void Mir_UpdateRects(_THIS, int numrects, SDL_Rect* rects)
{
    if (!mir_surface_is_valid(this->hidden->surface))
    {
          const char* error = mir_surface_get_error_message(this->hidden->surface);
          fprintf(stderr, "Failed to created a mir surface: %s", error);
          return;
    }

    MirGraphicsRegion region;
    MirBufferStream *bs;

    bs = mir_surface_get_buffer_stream(this->hidden->surface);
    mir_buffer_stream_get_graphics_region(bs, &region);

    RedrawRegion(this, &region);

    mir_buffer_stream_swap_buffers_sync(bs);
}
Download as text