aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-23 13:17:13 +0100
committerSebastian Geerken <devnull@localhost>2015-01-23 13:17:13 +0100
commit80229b2b5159af52b407fdf2f535d57c669bb667 (patch)
tree1119ca90bc237648a1dea0bd5392dbd759239bca /dw/layout.cc
parent101b4e1ddcf164b55ccf06513fc007463bfc0662 (diff)
Simplified interrupted drawing. (Mouse events will follow.)
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index c87606dd..ca2ceb98 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -704,7 +704,8 @@ void Layout::draw (View *view, Rectangle *area)
widgetDrawArea.width = intersection.width;
widgetDrawArea.height = intersection.height;
- topLevel->drawToplevel (view, &widgetDrawArea);
+ DrawingContext context (&widgetArea);
+ topLevel->draw (view, &widgetDrawArea, &context);
view->finishDrawing (&intersection);
}