aboutsummaryrefslogtreecommitdiff
path: root/src/gui/cheatMenu.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-08-01 11:55:48 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-08-01 11:55:48 +0200
commitf1760622ec4708decfe34e268a63a9d83d2978a7 (patch)
tree7b84e9f18aea4af38974c71ff0382c4370b5cf35 /src/gui/cheatMenu.cpp
parent2675bcca1a3e8c59475ccb29d1afa9e19489a686 (diff)
downloaddragonfireclient-f1760622ec4708decfe34e268a63a9d83d2978a7.tar.xz
Added BrightNight
Diffstat (limited to 'src/gui/cheatMenu.cpp')
-rw-r--r--src/gui/cheatMenu.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/cheatMenu.cpp b/src/gui/cheatMenu.cpp
index 3d5273108..5707ed696 100644
--- a/src/gui/cheatMenu.cpp
+++ b/src/gui/cheatMenu.cpp
@@ -54,10 +54,9 @@ void CheatMenu::drawEntry(video::IVideoDriver* driver, std::string name, int num
if (selected)
fontcolor = &m_selected_font_color;
}
- core::rect<s32> bounds(x, y, x + width, y + height);
- driver->draw2DRectangle(*bgcolor, bounds);
+ driver->draw2DRectangle(*bgcolor, core::rect<s32>(x, y, x + width, y + height));
if (selected)
- driver->draw2DRectangleOutline(bounds, *fontcolor);
+ driver->draw2DRectangleOutline(core::rect<s32>(x - 1, y - 1, x + width, y + height), *fontcolor);
int fx = x + 5, fy = y + (height - m_fontsize.Y) / 2;
core::rect<s32> fontbounds(fx, fy, fx + m_fontsize.X * name.size(), fy + m_fontsize.Y);
m_font->draw(name.c_str(), fontbounds, *fontcolor, false, false);