[byzanz] The Cairo conversion did the offsets wrong
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [byzanz] The Cairo conversion did the offsets wrong
- Date: Sat, 15 Aug 2009 22:12:21 +0000 (UTC)
commit 5822f7b6746715d8a9437131a3c1abb02c8aeb2f
Author: Benjamin Otte <otte gnome org>
Date: Sat Aug 15 23:10:15 2009 +0200
The Cairo conversion did the offsets wrong
... and I of course only tested fullscreen recording.
src/byzanzrecorder.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/byzanzrecorder.c b/src/byzanzrecorder.c
index fa7c5d5..885a95d 100644
--- a/src/byzanzrecorder.c
+++ b/src/byzanzrecorder.c
@@ -223,11 +223,11 @@ recorder_job_new (ByzanzRecorder *rec, RecorderJobType type,
XFixesSubtractRegion (dpy, rec->damaged, rec->damaged, rec->damaged);
}
cr = cairo_create (job->image);
- byzanz_cairo_set_source_window (cr, rec->window, rec->area.x, rec->area.y);
+ byzanz_cairo_set_source_window (cr, rec->window, -rec->area.x, -rec->area.y);
+ gdk_region_offset (region, -rec->area.x, -rec->area.y);
gdk_cairo_region (cr, region);
cairo_paint (cr);
cairo_destroy (cr);
- gdk_region_offset (region, -rec->area.x, -rec->area.y);
}
return job;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]