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 <rahuba.youri@mapswithme.com>2015-02-17 14:17:03 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:04:04 +0300
commit26fca8b440e5c1c85f27ee0c4c04b5c343d409e7 (patch)
tree0091ad6ad308b42426ac789af0b443e8fb77a406 /drape_head
parent87f712ed6c4546ebc034faa2dc5ffa3766cee31a (diff)
review fixes
Diffstat (limited to 'drape_head')
-rw-r--r--drape_head/drape_surface.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/drape_head/drape_surface.cpp b/drape_head/drape_surface.cpp
index 28a553e57f..14658d52d3 100644
--- a/drape_head/drape_surface.cpp
+++ b/drape_head/drape_surface.cpp
@@ -38,7 +38,7 @@ void DrapeSurface::CreateEngine()
{
dp::RefPointer<dp::OGLContextFactory> f(m_contextFactory.GetRefPointer());
- float pixelRatio = devicePixelRatio();
+ float const pixelRatio = devicePixelRatio();
m_drapeEngine = TEnginePrt(new df::TestingEngine(f, df::Viewport(0, 0, pixelRatio * width(), pixelRatio * height()), pixelRatio));
}
@@ -47,9 +47,9 @@ void DrapeSurface::sizeChanged(int)
{
if (!m_drapeEngine.IsNull())
{
- float vs = devicePixelRatio();
- int w = width() * vs;
- int h = height() * vs;
+ float const vs = devicePixelRatio();
+ int const w = width() * vs;
+ int const h = height() * vs;
m_drapeEngine->Resize(w, h);
}
}