aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/widget.cc')
-rw-r--r--dw/widget.cc16
1 files changed, 13 insertions, 3 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index 31c69f4c..766d2500 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -350,9 +350,14 @@ void Widget::drawBox (View *view, style::Style *style, Rectangle *area,
allocation.x + x, allocation.y + y,
width, height, style, inverse);
+ /**
+ * \todo Reference should be the containing block (which will be
+ * introduced later), not the widget allocation.
+ */
style::drawBackground (view, layout, &canvasArea,
allocation.x + x, allocation.y + y, width, height,
- style, inverse, false);
+ allocation.x, allocation.y, allocation.width,
+ getHeight (), style, inverse, false);
}
/**
@@ -372,9 +377,14 @@ void Widget::drawWidgetBox (View *view, Rectangle *area, bool inverse)
style::drawBorder (view, layout, &canvasArea, allocation.x, allocation.y,
allocation.width, getHeight (), style, inverse);
+ /**
+ * \todo Reference should be the containing block (which will be
+ * introduced later), not the widget allocation.
+ */
style::drawBackground (view, layout, &canvasArea, allocation.x, allocation.y,
- allocation.width, getHeight (), style, inverse,
- parent == NULL);
+ allocation.width, getHeight (), allocation.x,
+ allocation.y, allocation.width, getHeight (),
+ style, inverse, parent == NULL);
}
/*