forked from Mirrorlandia_minetest/minetest
Fix labels and vertlabels on some systems.
This commit is contained in:
parent
e81454fb38
commit
c86b78c9b7
@ -583,7 +583,7 @@ void CGUITTFont::draw(const core::stringw& text, const core::rect<s32>& position
|
|||||||
if (lineBreak)
|
if (lineBreak)
|
||||||
{
|
{
|
||||||
previousChar = 0;
|
previousChar = 0;
|
||||||
offset.Y += font_metrics.ascender / 64;
|
offset.Y += font_metrics.height / 64;
|
||||||
offset.X = position.UpperLeftCorner.X;
|
offset.X = position.UpperLeftCorner.X;
|
||||||
|
|
||||||
if (hcenter)
|
if (hcenter)
|
||||||
|
@ -1111,7 +1111,7 @@ void GUIFormSpecMenu::parseLabel(parserData* data,std::string element)
|
|||||||
L"",
|
L"",
|
||||||
258+m_fields.size()
|
258+m_fields.size()
|
||||||
);
|
);
|
||||||
Environment->addStaticText(spec.flabel.c_str(), rect, false, true, this, spec.fid);
|
Environment->addStaticText(spec.flabel.c_str(), rect, false, false, this, spec.fid);
|
||||||
m_fields.push_back(spec);
|
m_fields.push_back(spec);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1157,7 +1157,7 @@ void GUIFormSpecMenu::parseVertLabel(parserData* data,std::string element)
|
|||||||
258+m_fields.size()
|
258+m_fields.size()
|
||||||
);
|
);
|
||||||
gui::IGUIStaticText *t =
|
gui::IGUIStaticText *t =
|
||||||
Environment->addStaticText(spec.flabel.c_str(), rect, false, true, this, spec.fid);
|
Environment->addStaticText(spec.flabel.c_str(), rect, false, false, this, spec.fid);
|
||||||
t->setTextAlignment(gui::EGUIA_CENTER, gui::EGUIA_CENTER);
|
t->setTextAlignment(gui::EGUIA_CENTER, gui::EGUIA_CENTER);
|
||||||
m_fields.push_back(spec);
|
m_fields.push_back(spec);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user