diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-01 12:18:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-01 12:18:40 +0300 |
commit | 9c47e5cfc0e91071e0b5ad12b08f7d0c017d7856 (patch) | |
tree | d4d4912b29813f51689db6cfdd75433fd6beb706 | |
parent | 05e6289b28c26df11b38a71e737017d64d22b029 (diff) | |
download | manaverse-9c47e5cfc0e91071e0b5ad12b08f7d0c017d7856.tar.gz manaverse-9c47e5cfc0e91071e0b5ad12b08f7d0c017d7856.tar.bz2 manaverse-9c47e5cfc0e91071e0b5ad12b08f7d0c017d7856.tar.xz manaverse-9c47e5cfc0e91071e0b5ad12b08f7d0c017d7856.zip |
Remove free space from top and right in buttons menu.
-rw-r--r-- | src/client.cpp | 2 | ||||
-rw-r--r-- | src/game.cpp | 2 | ||||
-rw-r--r-- | src/gui/windowmenu.cpp | 10 |
3 files changed, 4 insertions, 10 deletions
diff --git a/src/client.cpp b/src/client.cpp index ce265ee15..a96f50395 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -885,7 +885,7 @@ int Client::testsExec() const #define ADDBUTTON(var, object) var = object; \ x -= var->getWidth() + 6; \ - var->setPosition(x, 3); \ + var->setPosition(x, 0); \ top->add(var); diff --git a/src/game.cpp b/src/game.cpp index dd0f1233b..ae7ba3b4f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1187,5 +1187,5 @@ void Game::videoResized(const int width, const int height) const if (viewport) viewport->setSize(width, height); if (windowMenu) - windowMenu->setPosition(width - 3 - windowMenu->getWidth(), 3); + windowMenu->setPosition(width - windowMenu->getWidth(), 0); } diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 728718acc..c7bccb9bc 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -169,10 +169,7 @@ WindowMenu::WindowMenu(const Widget2 *const widget) : _("Setup"), x, h, Input::KEY_WINDOW_SETUP, setupWindow); if (mainGraphics) - { - setDimension(gcn::Rectangle(mainGraphics->mWidth - x - 3, - 3, x - 3, h)); - } + setDimension(gcn::Rectangle(mainGraphics->mWidth - x, 0, x, h)); loadButtons(); @@ -360,10 +357,7 @@ void WindowMenu::updateButtons() } } if (mainGraphics) - { - setDimension(gcn::Rectangle(mainGraphics->mWidth - x - 3, - 3, x - 3, h)); - } + setDimension(gcn::Rectangle(mainGraphics->mWidth - x, 0, x, h)); } void WindowMenu::loadButtons() |