Challenge points were not displayed at the right position for RTL languages

This commit is contained in:
Flakebi 2015-03-29 23:53:36 +02:00
parent ded789de18
commit b041d0d79e

View File

@ -46,7 +46,8 @@ void STKTextBillboard::updateAbsolutePosition()
scene::IMesh* STKTextBillboard::getTextMesh(core::stringw text, gui::ScalableFont* font)
{
font->doDraw(text, core::rect<s32>(0, 0, 1000, 1000), video::SColor(255,255,255,255),
core::dimension2du size = font->getDimension(text.c_str());
font->doDraw(text, core::rect<s32>(0, 0, size.Width, size.Height), video::SColor(255,255,255,255),
false, false, NULL, this);
const float scale = 0.018f;