From 56cdfd3822d2800abdd2f912ab7f76a5764793a7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Oct 2008 13:45:07 +0000 Subject: scrollpane widget, updated chatbox --- src/ui/button.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/ui/button.cc') diff --git a/src/ui/button.cc b/src/ui/button.cc index e36d036..856c165 100644 --- a/src/ui/button.cc +++ b/src/ui/button.cc @@ -46,9 +46,6 @@ void Button::set_command(const std::string &command) void Button::draw_border() { - if (!border()) - return; - if (has_mouse_focus()) paint::color(palette()->foreground()); else @@ -57,7 +54,7 @@ void Button::draw_border() paint::border(global_location(), size()); } -void Button::draw_text() +void Button::draw() { if (!text().size()) return; @@ -67,7 +64,7 @@ void Button::draw_text() else paint::color(palette()->foreground()); - paint::text(global_location(), size(), font(), text(), alignment()); + paint::label(global_location(), size(), font(), text(), alignment()); } bool Button::on_keypress(const int key, const unsigned int modifier) -- cgit v1.2.3