scaling of offset on retina

This commit is contained in:
Darafei Praliaskouski 2013-01-22 20:05:24 +03:00 committed by Alex Zolotarev
parent 2c9335038d
commit 92ecb5fd77

View file

@ -127,9 +127,9 @@ void ConvertStyle(CaptionDefProto const * pSrc, double scale, graphics::FontDesc
offset = m2::PointD(0,0);
if (pSrc->has_offset_x())
offset.x = pSrc->offset_x();
offset.x = scale * pSrc->offset_x();
if (pSrc->has_offset_y())
offset.y = pSrc->offset_y();
offset.y = scale * pSrc->offset_y();
dest = graphics::FontDesc(h, ConvertColor(pSrc->color()));