recording: copy reverses its dst and src parameters

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55799
This commit is contained in:
Henry Song 2012-10-11 16:57:57 +01:00 committed by Chris Wilson
parent 26c8accd41
commit ed720007ba

View file

@ -1441,7 +1441,7 @@ _cairo_recording_surface_snapshot (void *abstract_other)
surface->optimize_clears = TRUE;
_cairo_array_init (&surface->commands, sizeof (cairo_command_t *));
status = _cairo_recording_surface_copy (other, surface);
status = _cairo_recording_surface_copy (surface, other);
if (unlikely (status)) {
cairo_surface_destroy (&surface->base);
return _cairo_surface_create_in_error (status);