diff options
Diffstat (limited to 'src/mbgl/sprite/sprite_atlas.hpp')
-rw-r--r-- | src/mbgl/sprite/sprite_atlas.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/sprite/sprite_atlas.hpp b/src/mbgl/sprite/sprite_atlas.hpp index 167d012c6b..aca82b3fea 100644 --- a/src/mbgl/sprite/sprite_atlas.hpp +++ b/src/mbgl/sprite/sprite_atlas.hpp @@ -34,6 +34,7 @@ struct SpriteAtlasPosition { struct SpriteAtlasElement { const Rect<uint16_t> pos; const std::shared_ptr<const SpriteImage> texture; + const float relativePixelRatio; }; class SpriteAtlas : public util::noncopyable { @@ -83,7 +84,7 @@ private: using Key = std::pair<std::string, bool>; - Rect<SpriteAtlas::dimension> allocateImage(size_t width, size_t height); + Rect<SpriteAtlas::dimension> allocateImage(float width, float height); void copy(const Holder& holder, const bool wrap); std::recursive_mutex mtx; |