fix fill pattern spacing

js: 22e24f7f67c4db89d09c0b65df67d0fcf1c3b614
This commit is contained in:
Ansis Brammanis
2015-01-08 14:00:06 -05:00
parent c32f7dfa88
commit 59b51f0a9f

View File

@@ -137,12 +137,12 @@ SpriteAtlasPosition SpriteAtlas::getPosition(const std::string& name, bool repea
return SpriteAtlasPosition {};
}
rect.w = pos.width;
rect.h = pos.height;
rect.w = pos.width / pos.pixelRatio;
rect.h = pos.height / pos.pixelRatio;
}
return SpriteAtlasPosition {
{{ float(rect.w) / pixelRatio, float(rect.h) / pixelRatio }},
{{ float(rect.w), float(rect.h) }},
{{ float(rect.x) / width, float(rect.y) / height }},
{{ float(rect.x + rect.w) / width, float(rect.y + rect.h) / height }}
};