From 63558e06ad4fbc33ad3bdec57dc0ead2b369a7b0 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 17 May 2017 08:58:36 -0700 Subject: [core] Remove obsolete modular arithmetic on atlas coordinates We switched to 16-bit coordinates in attributes in b0cb8715ed74678b4d0f05829fa71a590e41b2f6, so there's no longer any reason to require that they are divisible by four. --- test/sprite/sprite_atlas.test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/sprite') diff --git a/test/sprite/sprite_atlas.test.cpp b/test/sprite/sprite_atlas.test.cpp index 37a50ddddb..269e5b4b62 100644 --- a/test/sprite/sprite_atlas.test.cpp +++ b/test/sprite/sprite_atlas.test.cpp @@ -91,8 +91,8 @@ TEST(SpriteAtlas, Size) { float imagePixelRatio = metro.relativePixelRatio * atlas.getPixelRatio(); EXPECT_EQ(0, metro.pos.x); EXPECT_EQ(0, metro.pos.y); - EXPECT_EQ(16, metro.pos.w); - EXPECT_EQ(16, metro.pos.h); + EXPECT_EQ(15, metro.pos.w); + EXPECT_EQ(15, metro.pos.h); EXPECT_EQ(18, metro.width); EXPECT_EQ(18, metro.height); EXPECT_EQ(18u, metro.width * imagePixelRatio); @@ -118,8 +118,8 @@ TEST(SpriteAtlas, Updates) { float imagePixelRatio = one.relativePixelRatio * atlas.getPixelRatio(); EXPECT_EQ(0, one.pos.x); EXPECT_EQ(0, one.pos.y); - EXPECT_EQ(20, one.pos.w); - EXPECT_EQ(16, one.pos.h); + EXPECT_EQ(18, one.pos.w); + EXPECT_EQ(14, one.pos.h); EXPECT_EQ(16, one.width); EXPECT_EQ(12, one.height); EXPECT_EQ(16u, one.width * imagePixelRatio); -- cgit v1.2.1