From f030154fe727e25a2afe1f78b3998c2d2dba95e4 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 18 Aug 2009 09:24:15 +0000 Subject: astyle cleanup, corrects not loading of material textures --- src/ui/button.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ui/button.cc') diff --git a/src/ui/button.cc b/src/ui/button.cc index 989e9eb..85cad7e 100644 --- a/src/ui/button.cc +++ b/src/ui/button.cc @@ -59,7 +59,7 @@ void Button::draw_border() paint::color(color); } else paint::color(palette()->border()); - + paint::border(global_location(), size()); } @@ -67,17 +67,17 @@ void Button::draw() { if (!text().size()) return; - + if (has_mouse_focus()) paint::color(palette()->highlight()); else paint::color(palette()->foreground()); - + paint::label(global_location(), size(), font(), text(), alignment()); } bool Button::on_keypress(const int key, const unsigned int modifier) -{ +{ if (key == 512 + SDL_BUTTON_LEFT) { core::cmd() << button_command << std::endl; audio::play("ui/button"); -- cgit v1.2.3