diff options
Diffstat (limited to 'src/gui/cheatMenu.cpp')
-rw-r--r-- | src/gui/cheatMenu.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/cheatMenu.cpp b/src/gui/cheatMenu.cpp index d72a14480..548ddea73 100644 --- a/src/gui/cheatMenu.cpp +++ b/src/gui/cheatMenu.cpp @@ -1,17 +1,14 @@ /* Dragonfire Copyright (C) 2020 Elias Fleckenstein <eliasfleckenstein@web.de> - This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. @@ -72,7 +69,7 @@ void CheatMenu::drawEntry(video::IVideoDriver *driver, std::string name, driver->draw2DRectangle(*bgcolor, core::rect<s32>(x, y, x + width, y + height)); if (is_selected) driver->draw2DRectangleOutline( - core::rect<s32>(x - 1, y - 1, x + width, y + height), + core::rect<s32>(x - 2, y - 2, x + width + 1, y + height + 1), *fontcolor); int fx = x + 5, fy = y + (height - m_fontsize.Y) / 2; core::rect<s32> fontbounds( @@ -167,4 +164,4 @@ void CheatMenu::selectConfirm() if (m_cheat_layer) script->toggle_cheat(script->m_cheat_categories[m_selected_category] ->m_cheats[m_selected_cheat]); -} +}
\ No newline at end of file |