summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-09-24 15:40:08 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-09-24 15:40:08 -0400
commit8a19896c3a0e450ba498281b8879eb86060fa0cb (patch)
treeb8faf9424efbec8314b6913147d94a6019987b86 /common
parentc5a7738dd640604a523e6e069cba92940d502614 (diff)
parentee3e0827a20492ba0f91c5c5f60cf24b2e49cb32 (diff)
downloadqtlocation-mapboxgl-8a19896c3a0e450ba498281b8879eb86060fa0cb.tar.gz
Merge branch 'master' into libuv010
Diffstat (limited to 'common')
-rw-r--r--common/headless_view.cpp5
-rw-r--r--common/headless_view.hpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp
index 6ab005b6cf..94a6cd03bc 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -66,9 +66,12 @@ HeadlessView::HeadlessView() {
}
-void HeadlessView::resize(int width, int height) {
+void HeadlessView::resize(uint16_t width, uint16_t height, float pixelRatio) {
clear_buffers();
+ width *= pixelRatio;
+ height *= pixelRatio;
+
#if MBGL_USE_CGL
make_active();
diff --git a/common/headless_view.hpp b/common/headless_view.hpp
index 0b255b4a38..a8ce4aa325 100644
--- a/common/headless_view.hpp
+++ b/common/headless_view.hpp
@@ -19,7 +19,7 @@ public:
HeadlessView();
~HeadlessView();
- void resize(int width, int height);
+ void resize(uint16_t width, uint16_t height, float pixelRatio);
void notify_map_change(MapChange change, timestamp delay = 0);
void make_active();