1
0
Fork 0

Remove formspec opacity in the ConfirmRegistration dialog

merge-requests/1/head
Maksym H 2023-05-21 14:25:23 +02:00 committed by mckaygerhard
parent 8c5e0cb61f
commit 732281da4a
1 changed files with 0 additions and 13 deletions

View File

@ -65,14 +65,6 @@ GUIConfirmRegistration::GUIConfirmRegistration(gui::IGUIEnvironment *env,
m_touchscreen_visible = false;
#endif
v3f formspec_bgcolor = g_settings->getV3F("formspec_fullscreen_bg_color");
m_fullscreen_bgcolor = video::SColor(
(u8) MYMIN(MYMAX(g_settings->getS32("formspec_fullscreen_bg_opacity"), 0), 255),
MYMIN(MYMAX(myround(formspec_bgcolor.X), 0), 255),
MYMIN(MYMAX(myround(formspec_bgcolor.Y), 0), 255),
MYMIN(MYMAX(myround(formspec_bgcolor.Z), 0), 255)
);
#ifdef _IRR_COMPILE_WITH_SDL_DEVICE_
if (porting::hasRealKeyboard())
SDL_StartTextInput();
@ -225,11 +217,6 @@ void GUIConfirmRegistration::drawMenu()
gui::IGUISkin *skin = Environment->getSkin();
if (!skin)
return;
video::IVideoDriver *driver = Environment->getVideoDriver();
v2u32 screensize = driver->getScreenSize();
core::rect<s32> allbg(0, 0, screensize.X, screensize.Y);
driver->draw2DRectangle(m_fullscreen_bgcolor, allbg, &allbg);
gui::IGUIElement::draw();
#if defined(__ANDROID__) || defined(__IOS__)