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-07 20:56:20 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:04:02 +0300
commitf09bcdbc7e2b44a8e4363136f9e11004404584b8 (patch)
treeffd1e945dcc624c18fdfff2427280350ff8543cd /drape_head
parentf4a87c2d851b3973a94553d42857ccb3a86615cc (diff)
[drape] correct viewport for desktop app
Diffstat (limited to 'drape_head')
-rw-r--r--drape_head/drape_surface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drape_head/drape_surface.cpp b/drape_head/drape_surface.cpp
index ec8e2f5cd0..8888c8672b 100644
--- a/drape_head/drape_surface.cpp
+++ b/drape_head/drape_surface.cpp
@@ -132,7 +132,7 @@ void DrapeSurface::CreateEngine()
m_model.ReadFeatures(fn, ids);
};
- m_drapeEngine = TEnginePrt(new df::DrapeEngine(f, df::Viewport(0, 0, width(), height()),
+ m_drapeEngine = TEnginePrt(new df::DrapeEngine(f, df::Viewport(0, 0, pixelRatio * width(), pixelRatio * height()),
df::MapDataProvider(idReadFn, featureReadFn), pixelRatio));
}
@@ -149,7 +149,7 @@ void DrapeSurface::sizeChanged(int)
int w = width() * vs;
int h = height() * vs;
m_navigator.OnSize(0, 0, w, h);
- m_drapeEngine->Resize(width(), height());
+ m_drapeEngine->Resize(w, h);
UpdateCoverage();
}
}