Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-08-18 09:24:15 +0000
committerStijn Buys <ingar@osirion.org>2009-08-18 09:24:15 +0000
commitf030154fe727e25a2afe1f78b3998c2d2dba95e4 (patch)
treecd92baf9e4fa8a136523b9eb570e9811846c9250 /src/ui/iconbutton.cc
parent5636fad174f0bcff857c357c394c4cc8d424b302 (diff)
astyle cleanup, corrects not loading of material textures
Diffstat (limited to 'src/ui/iconbutton.cc')
-rw-r--r--src/ui/iconbutton.cc6
1 files changed, 3 insertions, 3 deletions
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;