[core] Update to shelf-pack 2.1.0
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -48,11 +48,11 @@ ImageAtlas makeImageAtlas(const ImageMap& images) {
|
||||
ImagePosition { bin, image });
|
||||
}
|
||||
|
||||
// pack.shrink();
|
||||
// result.image.resize({
|
||||
// static_cast<uint32_t>(pack.width()),
|
||||
// static_cast<uint32_t>(pack.height())
|
||||
// });
|
||||
pack.shrink();
|
||||
result.image.resize({
|
||||
static_cast<uint32_t>(pack.width()),
|
||||
static_cast<uint32_t>(pack.height())
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -53,11 +53,11 @@ GlyphAtlas makeGlyphAtlas(const GlyphMap& glyphs) {
|
||||
}
|
||||
}
|
||||
|
||||
// pack.shrink();
|
||||
// result.image.resize({
|
||||
// static_cast<uint32_t>(pack.width()),
|
||||
// static_cast<uint32_t>(pack.height())
|
||||
// });
|
||||
pack.shrink();
|
||||
result.image.resize({
|
||||
static_cast<uint32_t>(pack.width()),
|
||||
static_cast<uint32_t>(pack.height())
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user