diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-18 09:24:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-18 09:24:15 +0000 |
commit | f030154fe727e25a2afe1f78b3998c2d2dba95e4 (patch) | |
tree | cd92baf9e4fa8a136523b9eb570e9811846c9250 /src/ui/menu.cc | |
parent | 5636fad174f0bcff857c357c394c4cc8d424b302 (diff) |
astyle cleanup, corrects not loading of material textures
Diffstat (limited to 'src/ui/menu.cc')
-rw-r--r-- | src/ui/menu.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ui/menu.cc b/src/ui/menu.cc index 716f5b4..c4dc214 100644 --- a/src/ui/menu.cc +++ b/src/ui/menu.cc @@ -18,7 +18,7 @@ Menu::Menu(Window *parent, const char *label) : Window(parent) set_label(label); set_border(false); set_background(false); - + menu_background = new Bitmap(this); menu_container = new Container(this); @@ -63,17 +63,17 @@ void Menu::resize() bool Menu::on_keypress(const int key, const unsigned int modifier) { - switch( key ) { - - case SDLK_ESCAPE: - if (visible()) { - this->hide(); - return true; - } - break; - - default: - break; + switch (key) { + + case SDLK_ESCAPE: + if (visible()) { + this->hide(); + return true; + } + break; + + default: + break; } return Window::on_keypress(key, modifier); |