projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12ef19d
)
use fill transparency detection to avoid rendering transparent (invisible) rectangle...
author
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 7 Mar 2014 17:29:26 +0000
(12:29 -0500)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 7 Mar 2014 17:29:26 +0000
(12:29 -0500)
libs/canvas/rectangle.cc
patch
|
blob
|
history
diff --git
a/libs/canvas/rectangle.cc
b/libs/canvas/rectangle.cc
index acda1708a3f425799d5b2a894894005e5f6edd40..3512c617e171bd67e1c01436c37eb5d780f5fe87 100644
(file)
--- a/
libs/canvas/rectangle.cc
+++ b/
libs/canvas/rectangle.cc
@@
-60,7
+60,7
@@
Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
Rect draw = r.get ();
- if (_fill) {
+ if (_fill
&& !_transparent
) {
if (_stops.empty()) {
setup_fill_context (context);
} else {
@@
-124,7
+124,7
@@
Rectangle::compute_bounding_box () const
box for the right and bottom edges, see ::render() above
*/
- r.x1 += 0.5;
+
//
r.x1 += 0.5;
r.y1 += 0.5;
_bounding_box = r;