[byzanz] Move status per-layer



commit 3aef30d888ebdc913382981450fa9f171dd36c45
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Mar 19 04:25:58 2013 -0400

    Move status per-layer

 src/byzanzrecorder.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/byzanzrecorder.c b/src/byzanzrecorder.c
index 25666ad..3f5211d 100644
--- a/src/byzanzrecorder.c
+++ b/src/byzanzrecorder.c
@@ -141,11 +141,11 @@ byzanz_recorder_create_snapshot (ByzanzRecorder *recorder, const cairo_region_t
 
     cairo_save (cr);
     klass->render (layer, cr);
+    if (cairo_status (cr))
+      g_critical ("error capturing image: %s", cairo_status_to_string (cairo_status (cr)));
     cairo_restore (cr);
   }
 
-  if (cairo_status (cr))
-    g_printerr ("error capturing image: %s\n", cairo_status_to_string (cairo_status (cr)));
   cairo_destroy (cr);
 
   surface = ensure_image_surface (surface, invalid);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]