String: Fix issue with Angle= since 59b3dea

This commit is contained in:
Birunthan Mohanathas 2013-06-09 19:05:46 +03:00
parent 5b60d6c400
commit 72bf8dc317

View File

@ -543,7 +543,8 @@ bool MeterString::DrawString(Gfx::Canvas& canvas, RectF* rect)
if (m_Angle != 0.0f)
{
canvas.RotateTransform(CONVERT_TO_DEGREES(m_Angle), x, y, -x, -y);
const float baseX = (float)Meter::GetX();
canvas.RotateTransform(CONVERT_TO_DEGREES(m_Angle), baseX, y, -baseX, -y);
}
if (m_Effect != EFFECT_NONE)