Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExMix <ExMix@Youris-MacBook-Pro.local>2013-05-23 16:57:11 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:55:53 +0300
commitcd4b4448f9ca94f02cac0b80822fa1ca7a78097e (patch)
treed6fcd3e2c08608c5c7b7a3403df3fa887a1307d7 /graphics
parent4d04e931fdf06d8677e2d913d0546999d6837922 (diff)
we don't need to move rect. Only narrow to avoid texture upscale
Diffstat (limited to 'graphics')
-rw-r--r--graphics/image_renderer.cpp14
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);