From fd520c9cabdea03dbaa9edba4b8fdedd99ca75b3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Feb 2011 20:31:48 +0200 Subject: Fix showing buttons in up right corner. --- src/gui/windowmenu.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/windowmenu.cpp') diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 2a3ef51fa..1fa99e729 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -91,6 +91,12 @@ WindowMenu::WindowMenu(): addButton(N_("DR"), _("Drop"), x, h, KeyboardConfig::KEY_WINDOW_DROP); addButton(N_("SET"), _("Setup"), x, h, KeyboardConfig::KEY_WINDOW_SETUP); + if (graphics) + { + setDimension(gcn::Rectangle(graphics->getWidth() - x - 3, + 3, x - 3, h)); + } + loadButtons(); mTextPopup = new TextPopup; -- cgit v1.2.3-70-g09d2