diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2015-02-17 14:17:03 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-11-30 16:04:04 +0300 |
commit | 26fca8b440e5c1c85f27ee0c4c04b5c343d409e7 (patch) | |
tree | 0091ad6ad308b42426ac789af0b443e8fb77a406 /drape_head | |
parent | 87f712ed6c4546ebc034faa2dc5ffa3766cee31a (diff) |
review fixes
Diffstat (limited to 'drape_head')
-rw-r--r-- | drape_head/drape_surface.cpp | 8 |
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); } } |