[core] Change ImagePosition from storing non-padded rect to padded rect to mirror the JS implementation

This commit is contained in:
Konstantin Käfer
2019-12-10 13:07:38 +01:00
committed by Alexander Shalamov
parent c80baa35b3
commit 7d8d13ce04
6 changed files with 22 additions and 46 deletions

View File

@@ -51,7 +51,7 @@ TEST(PatternAtlas, Updates) {
ASSERT_TRUE(added);
auto found = patternAtlas.getPattern("one");
ASSERT_TRUE(found);
EXPECT_EQ(added->textureRect, found->textureRect);
EXPECT_EQ(added->paddedRect, found->paddedRect);
auto a = *found;
EXPECT_EQ(1, a.tl()[0]);