[cairo] [patch] recording: recording_surface_copy dst and src are reversed

Henry (Yu) Song - SISA hsong at sisa.samsung.com
Wed Oct 10 09:47:56 PDT 2012


>From 398b7b6f397ae7cd057aeeec107b01e103c9154d Mon Sep 17 00:00:00 2001
From: Henry Song <henry.song at samsung.com>
Date: Wed, 10 Oct 2012 09:45:24 -0700
Subject: [PATCH] recording: recording_surface_copy reverses dst and src

---
 src/cairo-recording-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c
index 73fc48a..e297273 100644
--- a/src/cairo-recording-surface.c
+++ b/src/cairo-recording-surface.c
@@ -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);
-- 
1.7.9.5


More information about the cairo mailing list