mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Fix errors/warnings reported by valgrind
This commit is contained in:
parent
6bd15247f9
commit
eadde1e741
4 changed files with 32 additions and 32 deletions
|
@ -81,6 +81,7 @@ GUIFormSpecMenu::GUIFormSpecMenu(irr::IrrlichtDevice* dev,
|
|||
m_selected_amount(0),
|
||||
m_selected_dragging(false),
|
||||
m_tooltip_element(NULL),
|
||||
m_old_tooltip_id(-1),
|
||||
m_allowclose(true),
|
||||
m_lock(false),
|
||||
m_form_src(fsrc),
|
||||
|
@ -1301,7 +1302,7 @@ void GUIFormSpecMenu::parseImageButton(parserData* data,std::string element,
|
|||
if (spec.fname == data->focused_fieldname) {
|
||||
Environment->setFocus(e);
|
||||
}
|
||||
|
||||
|
||||
e->setUseAlphaChannel(true);
|
||||
e->setImage(texture);
|
||||
e->setPressedImage(pressed_texture);
|
||||
|
@ -1800,7 +1801,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
|
|||
m_fields.clear();
|
||||
m_boxes.clear();
|
||||
m_tooltips.clear();
|
||||
|
||||
|
||||
// Set default values (fits old formspec values)
|
||||
m_bgcolor = video::SColor(140,0,0,0);
|
||||
m_bgfullscreen = false;
|
||||
|
@ -1810,7 +1811,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
|
|||
|
||||
m_default_tooltip_bgcolor = video::SColor(255,110,130,60);
|
||||
m_default_tooltip_color = video::SColor(255,255,255,255);
|
||||
|
||||
|
||||
m_slotbordercolor = video::SColor(200,0,0,0);
|
||||
m_slotborder = false;
|
||||
|
||||
|
@ -2828,7 +2829,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if(event.EventType==EET_MOUSE_INPUT_EVENT
|
||||
&& event.MouseInput.Event != EMIE_MOUSE_MOVED) {
|
||||
// Mouse event other than movement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue