diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2014-09-24 15:40:08 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2014-09-24 15:40:08 -0400 |
commit | 8a19896c3a0e450ba498281b8879eb86060fa0cb (patch) | |
tree | b8faf9424efbec8314b6913147d94a6019987b86 /common/headless_view.cpp | |
parent | c5a7738dd640604a523e6e069cba92940d502614 (diff) | |
parent | ee3e0827a20492ba0f91c5c5f60cf24b2e49cb32 (diff) | |
download | qtlocation-mapboxgl-8a19896c3a0e450ba498281b8879eb86060fa0cb.tar.gz |
Merge branch 'master' into libuv010
Diffstat (limited to 'common/headless_view.cpp')
-rw-r--r-- | common/headless_view.cpp | 5 |
1 files changed, 4 insertions, 1 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(); |