From ce5c63b368894eb6cc86595cbb1297e89ab270e6 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 11 Jan 2020 07:30:17 -0800 Subject: [PATCH] Fix bitmap unit test This was testing for bitmap dots per IU. But IU changed, so we needed to adjust how the bitmaps were scaled. This brings the QA up to date. --- qa/common/test_bitmap_base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/common/test_bitmap_base.cpp b/qa/common/test_bitmap_base.cpp index ebc7e57c9d..80e89d0ae5 100644 --- a/qa/common/test_bitmap_base.cpp +++ b/qa/common/test_bitmap_base.cpp @@ -109,7 +109,7 @@ BOOST_AUTO_TEST_CASE( Empty ) BOOST_CHECK_EQUAL( cempty.GetImageData(), nullptr ); BOOST_CHECK_EQUAL( cempty.GetPPI(), 300 ); BOOST_CHECK_EQUAL( cempty.GetScale(), 1.0 ); - BOOST_CHECK_EQUAL( cempty.GetPixelScaleFactor(), 1000.0 / 300.0 ); + BOOST_CHECK_EQUAL( cempty.GetPixelScaleFactor(), 254000.0 / 300.0 ); // can do this on an empty image empty.Rotate( true ); @@ -242,4 +242,4 @@ BOOST_AUTO_TEST_CASE( MirrorImage ) } } -BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file +BOOST_AUTO_TEST_SUITE_END()