Tidy up duplicated code.
[dcpomatic.git] / test / image_test.cc
index 4205e5f48e00ddfe942b887ee9623c4015ffd4f6..82ebe0b1ff5e6825c0db29bbd92f8fc2495092f8 100644 (file)
@@ -147,7 +147,7 @@ BOOST_AUTO_TEST_CASE (crop_image_test2)
        image = image->crop (crop, true);
 
        /* Convert it back to RGB to make comparison to black easier */
-       image = image->scale_and_convert_to_rgb (image->size(), Scaler::from_id ("bicubic"), true);
+       image = image->scale (image->size(), Scaler::from_id ("bicubic"), PIX_FMT_RGB24, true);
 
        /* Check that its still black after the crop */
        uint8_t* p = image->data()[0];