diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-03-01 20:41:41 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-03-01 20:46:17 -0700 |
commit | 76b306a5a2eff9f9a6bb65b3d784cc8e31ba6cce (patch) | |
tree | 7a7c43fb950add7ab991459cf91af23c02cb4309 /src/gui/gui.cpp | |
parent | 67e678094b9fddd21fb3c690130e772937ab2746 (diff) | |
download | mana-76b306a5a2eff9f9a6bb65b3d784cc8e31ba6cce.tar.gz mana-76b306a5a2eff9f9a6bb65b3d784cc8e31ba6cce.tar.bz2 mana-76b306a5a2eff9f9a6bb65b3d784cc8e31ba6cce.tar.xz mana-76b306a5a2eff9f9a6bb65b3d784cc8e31ba6cce.zip |
Simplify BeignPopup and therefore Viewport
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 2a6e1ce3..c5b77704 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -92,14 +92,6 @@ Gui::Gui(Graphics *graphics): delete mFocusHandler; mFocusHandler = new FocusHandler; - // Initialize top GUI widget - Viewport *guiTop = new Viewport; - guiTop->setFocusable(true); - guiTop->setDimension(gcn::Rectangle(0, 0, - graphics->getWidth(), graphics->getHeight())); - guiTop->setOpaque(false); - setTop(guiTop); - ResourceManager *resman = ResourceManager::getInstance(); // Set global font @@ -132,6 +124,14 @@ Gui::Gui(Graphics *graphics): gcn::Widget::setGlobalFont(mGuiFont); + // Initialize top GUI widget + Viewport *guiTop = new Viewport; + guiTop->setFocusable(true); + guiTop->setDimension(gcn::Rectangle(0, 0, + graphics->getWidth(), graphics->getHeight())); + guiTop->setOpaque(false); + setTop(guiTop); + // Initialize mouse cursor and listen for changes to the option setUseCustomCursor(config.getValue("customcursor", 1) == 1); mConfigListener = new GuiConfigListener(this); |