@@ -758,40 +758,40 @@ TEST_F(RenderedTargetTest, GetFastBounds)
758758 target.beforeRedraw ();
759759
760760 Rect bounds = target.getFastBounds ();
761- ASSERT_EQ (std::round (bounds.left () * 100 ) / 100 , 65.84 );
762- ASSERT_EQ (std::round (bounds.top () * 100 ) / 100 , -123.92 );
763- ASSERT_EQ (std::round (bounds.right () * 100 ) / 100 , 67.31 );
761+ ASSERT_EQ (std::round (bounds.left () * 100 ) / 100 , 64.47 );
762+ ASSERT_EQ (std::round (bounds.top () * 100 ) / 100 , -120.57 );
763+ ASSERT_EQ (std::round (bounds.right () * 100 ) / 100 , 69.26 );
764764 ASSERT_EQ (std::round (bounds.bottom () * 100 ) / 100 , -125.4 );
765765
766766 EXPECT_CALL (engine, stageWidth ()).WillOnce (Return (480 ));
767767 EXPECT_CALL (engine, stageHeight ()).WillOnce (Return (360 ));
768768 target.updateRotationStyle (Sprite::RotationStyle::LeftRight);
769769
770770 bounds = target.getFastBounds ();
771- ASSERT_EQ (std::round (bounds.left () * 100 ) / 100 , 71.67 );
771+ ASSERT_EQ (std::round (bounds.left () * 100 ) / 100 , 69.78 );
772772 ASSERT_EQ (std::round (bounds.top () * 100 ) / 100 , -110.26 );
773773 ASSERT_EQ (std::round (bounds.right () * 100 ) / 100 , 72.5 );
774- ASSERT_EQ (std::round (bounds.bottom () * 100 ) / 100 , -111.51 );
774+ ASSERT_EQ (std::round (bounds.bottom () * 100 ) / 100 , -114.34 );
775775
776776 EXPECT_CALL (engine, stageWidth ()).WillOnce (Return (480 ));
777777 EXPECT_CALL (engine, stageHeight ()).WillOnce (Return (360 ));
778778 target.setStageScale (20.75 );
779779
780780 bounds = target.getFastBounds ();
781- ASSERT_EQ (std::round (bounds.left () * 100 ) / 100 , 71.67 );
781+ ASSERT_EQ (std::round (bounds.left () * 100 ) / 100 , 69.78 );
782782 ASSERT_EQ (std::round (bounds.top () * 100 ) / 100 , -110.26 );
783783 ASSERT_EQ (std::round (bounds.right () * 100 ) / 100 , 72.5 );
784- ASSERT_EQ (std::round (bounds.bottom () * 100 ) / 100 , -111.51 );
784+ ASSERT_EQ (std::round (bounds.bottom () * 100 ) / 100 , -114.34 );
785785
786786 EXPECT_CALL (engine, stageWidth ()).WillOnce (Return (480 ));
787787 EXPECT_CALL (engine, stageHeight ()).WillOnce (Return (360 ));
788788 target.updateSize (9780.6 );
789789
790790 bounds = target.getFastBounds ();
791- ASSERT_EQ (std::round (bounds.left () * 100 ) / 100 , -496.15 );
791+ ASSERT_EQ (std::round (bounds.left () * 100 ) / 100 , -767 );
792792 ASSERT_EQ (std::round (bounds.top () * 100 ) / 100 , 1324.22 );
793793 ASSERT_EQ (std::round (bounds.right () * 100 ) / 100 , -375.77 );
794- ASSERT_EQ (std::round (bounds.bottom () * 100 ) / 100 , 1143.65 );
794+ ASSERT_EQ (std::round (bounds.bottom () * 100 ) / 100 , 737.38 );
795795
796796 context.doneCurrent ();
797797}
0 commit comments