[core] Update to shelf-pack 2.1.0
This commit is contained in:
@@ -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