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.
This commit is contained in:
Seth Hillbrand 2020-01-11 07:30:17 -08:00
parent 7c28c3838a
commit ce5c63b368
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ BOOST_AUTO_TEST_CASE( Empty )
BOOST_CHECK_EQUAL( cempty.GetImageData(), nullptr ); BOOST_CHECK_EQUAL( cempty.GetImageData(), nullptr );
BOOST_CHECK_EQUAL( cempty.GetPPI(), 300 ); BOOST_CHECK_EQUAL( cempty.GetPPI(), 300 );
BOOST_CHECK_EQUAL( cempty.GetScale(), 1.0 ); 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 // can do this on an empty image
empty.Rotate( true ); empty.Rotate( true );
@ -242,4 +242,4 @@ BOOST_AUTO_TEST_CASE( MirrorImage )
} }
} }
BOOST_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE_END()