projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11becd4
)
likely fix for Canvas::Image positioning under new coordinate/render rules
author
Paul Davis
<paul@linuxaudiosystems.com>
Sat, 22 Jun 2013 18:59:43 +0000
(14:59 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Sat, 22 Jun 2013 18:59:43 +0000
(14:59 -0400)
libs/canvas/image.cc
patch
|
blob
|
history
diff --git
a/libs/canvas/image.cc
b/libs/canvas/image.cc
index 4a9bcdf8f1b80abd77e953433c4d94ae8b21b810..32e453dc30e70b3a19bd271dece3ff2e9d8e28b2 100644
(file)
--- a/
libs/canvas/image.cc
+++ b/
libs/canvas/image.cc
@@
-48,7
+48,7
@@
Image::render (Rect const& area, Cairo::RefPtr<Cairo::Context> context) const
boost::optional<Rect> draw = self.intersection (area);
if (_surface && draw) {
- context->set_source (_surface,
0,
0);
+ context->set_source (_surface,
self.x0, self.y
0);
context->rectangle (draw->x0, draw->y0, draw->width(), draw->height());
context->fill ();
}