From 12e47f19f008d9134bad137a07a53e75207e50ff Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 31 Jul 2011 18:18:43 +0000 Subject: Corrects widget drawing order. --- src/ui/widget.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/widget.cc b/src/ui/widget.cc index 9ae2f32..4812b1f 100644 --- a/src/ui/widget.cc +++ b/src/ui/widget.cc @@ -449,6 +449,8 @@ void Widget::event_draw() if (widget_background) draw_background(); + + draw(); for (Children::iterator it = widget_children.begin(); it != widget_children.end(); it++) { if ((*it)->visible()) @@ -460,8 +462,6 @@ void Widget::event_draw() if (debug()) draw_debug(); - - draw(); } void Widget::event_resize() -- cgit v1.2.3