Skip to content

Commit

Permalink
Fix labels and vertlabels on some systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
RealBadAngel committed Jun 20, 2014
1 parent e81454f commit c86b78c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cguittfont/CGUITTFont.cpp
Expand Up @@ -583,7 +583,7 @@ void CGUITTFont::draw(const core::stringw& text, const core::rect<s32>& position
if (lineBreak)
{
previousChar = 0;
offset.Y += font_metrics.ascender / 64;
offset.Y += font_metrics.height / 64;
offset.X = position.UpperLeftCorner.X;

if (hcenter)
Expand Down
4 changes: 2 additions & 2 deletions src/guiFormSpecMenu.cpp
Expand Up @@ -1111,7 +1111,7 @@ void GUIFormSpecMenu::parseLabel(parserData* data,std::string element)
L"",
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);
return;
}
Expand Down Expand Up @@ -1157,7 +1157,7 @@ void GUIFormSpecMenu::parseVertLabel(parserData* data,std::string element)
258+m_fields.size()
);
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);
m_fields.push_back(spec);
return;
Expand Down

0 comments on commit c86b78c

Please sign in to comment.