1
0

Remove formspec opacity in the ConfirmRegistration dialog

This commit is contained in:
Maksym H 2023-05-21 14:25:23 +02:00 committed by mckaygerhard
parent 8c5e0cb61f
commit 732281da4a

View File

@ -65,14 +65,6 @@ GUIConfirmRegistration::GUIConfirmRegistration(gui::IGUIEnvironment *env,
m_touchscreen_visible = false; m_touchscreen_visible = false;
#endif #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_ #ifdef _IRR_COMPILE_WITH_SDL_DEVICE_
if (porting::hasRealKeyboard()) if (porting::hasRealKeyboard())
SDL_StartTextInput(); SDL_StartTextInput();
@ -225,11 +217,6 @@ void GUIConfirmRegistration::drawMenu()
gui::IGUISkin *skin = Environment->getSkin(); gui::IGUISkin *skin = Environment->getSkin();
if (!skin) if (!skin)
return; 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(); gui::IGUIElement::draw();
#if defined(__ANDROID__) || defined(__IOS__) #if defined(__ANDROID__) || defined(__IOS__)