From f1760622ec4708decfe34e268a63a9d83d2978a7 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 1 Aug 2020 11:55:48 +0200 Subject: Added BrightNight --- src/gui/cheatMenu.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gui/cheatMenu.cpp') 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 bounds(x, y, x + width, y + height); - driver->draw2DRectangle(*bgcolor, bounds); + driver->draw2DRectangle(*bgcolor, core::rect(x, y, x + width, y + height)); if (selected) - driver->draw2DRectangleOutline(bounds, *fontcolor); + driver->draw2DRectangleOutline(core::rect(x - 1, y - 1, x + width, y + height), *fontcolor); int fx = x + 5, fy = y + (height - m_fontsize.Y) / 2; core::rect fontbounds(fx, fy, fx + m_fontsize.X * name.size(), fy + m_fontsize.Y); m_font->draw(name.c_str(), fontbounds, *fontcolor, false, false); -- cgit v1.2.3