From bb544136f37c67f1ceea9a0b0c2ac780e72a1596 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 12 Jun 2017 11:12:38 -0700 Subject: [core] Update to shelf-pack 2.1.0 --- CMakeLists.txt | 2 +- src/mbgl/renderer/image_atlas.cpp | 10 +++++----- src/mbgl/text/glyph_atlas.cpp | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7107646587..0d8df9049f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,7 @@ mason_use(pixelmatch VERSION 0.10.0 HEADER_ONLY) mason_use(geojson VERSION 0.4.0 HEADER_ONLY) mason_use(polylabel VERSION 1.0.2 HEADER_ONLY) mason_use(wagyu VERSION 0.4.1 HEADER_ONLY) -mason_use(shelf-pack VERSION 2.0.1 HEADER_ONLY) +mason_use(shelf-pack VERSION 2.1.0 HEADER_ONLY) add_definitions(-DRAPIDJSON_HAS_STDSTRING=1) diff --git a/src/mbgl/renderer/image_atlas.cpp b/src/mbgl/renderer/image_atlas.cpp index 9649187175..8eee7c2095 100644 --- a/src/mbgl/renderer/image_atlas.cpp +++ b/src/mbgl/renderer/image_atlas.cpp @@ -48,11 +48,11 @@ ImageAtlas makeImageAtlas(const ImageMap& images) { ImagePosition { bin, image }); } -// pack.shrink(); -// result.image.resize({ -// static_cast(pack.width()), -// static_cast(pack.height()) -// }); + pack.shrink(); + result.image.resize({ + static_cast(pack.width()), + static_cast(pack.height()) + }); return result; } diff --git a/src/mbgl/text/glyph_atlas.cpp b/src/mbgl/text/glyph_atlas.cpp index 6636c23f34..1b98ea36bf 100644 --- a/src/mbgl/text/glyph_atlas.cpp +++ b/src/mbgl/text/glyph_atlas.cpp @@ -53,11 +53,11 @@ GlyphAtlas makeGlyphAtlas(const GlyphMap& glyphs) { } } -// pack.shrink(); -// result.image.resize({ -// static_cast(pack.width()), -// static_cast(pack.height()) -// }); + pack.shrink(); + result.image.resize({ + static_cast(pack.width()), + static_cast(pack.height()) + }); return result; } -- cgit v1.2.1