fix linejoin drawing on retina

This commit is contained in:
Konstantin Käfer
2014-04-10 11:49:43 -04:00
parent 524c8737e4
commit eb499e77c1
8 changed files with 64 additions and 49 deletions

View File

@@ -20,11 +20,9 @@ ImagePosition::ImagePosition(const vec2<uint16_t>& size, vec2<float> tl, vec2<fl
tl(tl),
br(br) {}
Sprite::Sprite() {
raster = std::make_shared<Raster>();
}
Sprite::Sprite(float pixelRatio) : pixelRatio(pixelRatio), raster(std::make_shared<Raster>()) {}
void Sprite::load(const std::string& base_url, float pixelRatio) {
void Sprite::load(const std::string& base_url) {
std::shared_ptr<Sprite> sprite = shared_from_this();
auto complete = [sprite]() {