Fix labels and vertlabels on some systems.
authorRealBadAngel <maciej.kasatkin@o2.pl>
Fri, 20 Jun 2014 19:30:48 +0000 (21:30 +0200)
committerRealBadAngel <maciej.kasatkin@o2.pl>
Fri, 20 Jun 2014 19:30:48 +0000 (21:30 +0200)
src/cguittfont/CGUITTFont.cpp
src/guiFormSpecMenu.cpp

index 73a126a9f9d966ef231b3bc2f931c73d0d0ef00e..92a24784e41f3c524e481f0febe5ac198b46c918 100644 (file)
@@ -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)
index 6073ed7ccb9fcc27a3211a1e7a88362092652bf1..dcf8387b3c132aff933eba7d401467b84269a16f 100644 (file)
@@ -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;
        }
@@ -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;