summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-03-07 12:29:26 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-03-07 12:29:26 -0500
commit6d3bd4e53c43e49cfc860cd772907f9f2fe2eb38 (patch)
tree661d5fbb701a246ad82bce249f9b49b01770981c /libs
parent12ef19d90a4a13a398d2d083499edf286c7ebd03 (diff)
use fill transparency detection to avoid rendering transparent (invisible) rectangle fill area
Diffstat (limited to 'libs')
-rw-r--r--libs/canvas/rectangle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/canvas/rectangle.cc b/libs/canvas/rectangle.cc
index acda1708a3..3512c617e1 100644
--- 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;