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:
parent
7c28c3838a
commit
ce5c63b368
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue