diff options
author | ExMix <ExMix@Youris-MacBook-Pro.local> | 2013-05-23 16:57:11 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:55:53 +0300 |
commit | cd4b4448f9ca94f02cac0b80822fa1ca7a78097e (patch) | |
tree | d6fcd3e2c08608c5c7b7a3403df3fa887a1307d7 /graphics | |
parent | 4d04e931fdf06d8677e2d913d0546999d6837922 (diff) |
we don't need to move rect. Only narrow to avoid texture upscale
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/image_renderer.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/graphics/image_renderer.cpp b/graphics/image_renderer.cpp index 8bd12404c9..720f76663a 100644 --- a/graphics/image_renderer.cpp +++ b/graphics/image_renderer.cpp @@ -27,16 +27,16 @@ namespace graphics ASSERT(res->m_cat == Resource::EImage, ()); m2::RectI texRect(res->m_texRect); - texRect.Inflate(-1, -1); + texRect.Inflate(-2, -2); m2::PointF pts[6] = { - m2::PointF(m2::PointD(-1, -1) * m), - m2::PointF(m2::PointD(texRect.SizeX() - 1, -1) * m), - m2::PointF(m2::PointD(texRect.SizeX() - 1, texRect.SizeY() - 1) * m), - m2::PointF(m2::PointD(texRect.SizeX() - 1, texRect.SizeY() - 1) * m), - m2::PointF(m2::PointD(-1, texRect.SizeY() - 1) * m), - m2::PointF(m2::PointD(-1, -1) * m) + m2::PointF(m2::PointD(0, 0) * m), + m2::PointF(m2::PointD(texRect.SizeX(), 0) * m), + m2::PointF(m2::PointD(texRect.SizeX(), texRect.SizeY()) * m), + m2::PointF(m2::PointD(texRect.SizeX(), texRect.SizeY()) * m), + m2::PointF(m2::PointD(0, texRect.SizeY()) * m), + m2::PointF(m2::PointD(0, 0) * m) }; GeometryPipeline & p = pipeline(res->m_pipelineID); |