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/iconbutton.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui/iconbutton.cc') diff --git a/src/ui/iconbutton.cc b/src/ui/iconbutton.cc index 2c4661e..ffdafe0 100644 --- a/src/ui/iconbutton.cc +++ b/src/ui/iconbutton.cc @@ -77,7 +77,7 @@ void IconButton::draw() { if (!icon().size()) return; - + if (disabled()) { paint::color(palette()->disabled()); } else if (has_mouse_focus()) { @@ -85,7 +85,7 @@ void IconButton::draw() } else { paint::color(palette()->foreground()); } - + paint::bitmap(location(), size(), icon()); } @@ -104,7 +104,7 @@ void IconButton::draw_border() } bool IconButton::on_keypress(const int key, const unsigned int modifier) -{ +{ if (key == 512 + SDL_BUTTON_LEFT) { if (enabled() && iconbutton_command.size()) { core::cmd() << iconbutton_command << std::endl; -- cgit v1.2.3