diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-26 15:32:42 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-26 15:32:42 +0000 |
commit | 23c7d2c11170ee8736673e82a88e87a3d2e538f7 (patch) | |
tree | cd88e317a4f42391bc3567ed1881c160227cd3c6 /src/ui/widget.cc | |
parent | 5189168482f32d8aac630cde27fc0999e70ed57b (diff) |
enables ui::Slider mouse dragging, corrected a bug in ui::Widget coordinate mapping
Diffstat (limited to 'src/ui/widget.cc')
-rw-r--r-- | src/ui/widget.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget.cc b/src/ui/widget.cc index f663cc6..37bde99 100644 --- a/src/ui/widget.cc +++ b/src/ui/widget.cc @@ -402,7 +402,7 @@ void Widget::event_draw() if (widget_border) draw_border(); if (debug()) - draw_debug_border(); + draw_debug(); draw(); for (Children::iterator it = widget_children.begin(); it != widget_children.end(); it++) { @@ -449,7 +449,7 @@ bool Widget::on_emit(Widget *sender, const Event event, void *data) /* -- draw functions ----------------------------------------------- */ -void Widget::draw_debug_border() +void Widget::draw_debug() { Paint::set_color(1.0f, 0.0f, 1.0f, 0.5f); Paint::draw_border(global_location(), size()); |