~andreas-pokorny/mir/activate-pointer-acceleration

« back to all changes in this revision

Viewing changes to examples/progressbar.c

  • Committer: Christopher James Halse Rogers
  • Date: 2015-02-12 05:55:17 UTC
  • mfrom: (2314 development-branch)
  • mto: This revision was merged to the branch mainline in revision 2326.
  • Revision ID: christopher.halse.rogers@canonical.com-20150212055517-4ebh62tbmq4co2m8
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
static void redraw(MirSurface *surface, const MirGraphicsRegion *canvas)
185
185
{
186
186
    MirGraphicsRegion backbuffer;
 
187
    MirBufferStream *bs = mir_surface_get_buffer_stream(surface);
187
188
 
188
 
    mir_surface_get_graphics_region(surface, &backbuffer);
 
189
    mir_buffer_stream_get_graphics_region(bs, &backbuffer);
189
190
    clear_region(&backbuffer, background);
190
191
    copy_region(&backbuffer, canvas);
191
 
    mir_surface_swap_buffers_sync(surface);
 
192
    mir_buffer_stream_swap_buffers_sync(bs);
192
193
}
193
194
 
194
195
int main(int argc, char *argv[])