summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun/tests2
-rw-r--r--src/lib/image.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/run/tests b/run/tests
index 7a757e9d0..3f465a433 100755
--- a/run/tests
+++ b/run/tests
@@ -22,6 +22,6 @@ elif [ "$1" == "--quiet" ]; then
build/test/unit-tests --catch_system_errors=no $*
else
ulimit -c unlimited
- build/test/unit-tests --catch_system_errors=no $*
+ build/test/unit-tests --catch_system_errors=no --log_level=test_suite $*
# build/test/unit-tests --catch_system_errors=no $*
fi
diff --git a/src/lib/image.cc b/src/lib/image.cc
index 959eec5a5..d3b193e7b 100644
--- a/src/lib/image.cc
+++ b/src/lib/image.cc
@@ -469,7 +469,7 @@ Image::make_black ()
void
Image::make_transparent ()
{
- if (_pixel_format != AV_PIX_FMT_BGRA) {
+ if (_pixel_format != AV_PIX_FMT_BGRA && _pixel_format != AV_PIX_FMT_RGBA) {
throw PixelFormatError ("make_transparent()", _pixel_format);
}