From 0c69c1b6f2f2a266b67ef71b0e336ac4f7ae32b0 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Feb 07 2019 09:10:43 +0000 Subject: fix output bpp glitch (#2509) --- diff --git a/toonz/sources/common/timage_io/timage_io.cpp b/toonz/sources/common/timage_io/timage_io.cpp index bb2ded5..837fc56 100644 --- a/toonz/sources/common/timage_io/timage_io.cpp +++ b/toonz/sources/common/timage_io/timage_io.cpp @@ -634,14 +634,14 @@ void TImageWriter::save(const TImageP &img) { // add background colors for non alpha-enabled image types if ((ras32 || ras64) && !writer->writeAlphaSupported() && TImageWriter::getBackgroundColor() != TPixel::Black) { - if (ras32) + if (bpp == 32 || bpp == 24) TRop::addBackground(ras, TImageWriter::getBackgroundColor()); - else { // ras64 + else if (bpp == 64 || bpp == 48) { TRaster64P bgRas(ras->getSize()); bgRas->fill(toPixel64(TImageWriter::getBackgroundColor())); TRop::over(bgRas, ras); ras = bgRas; - } + } // for other bpp values, do nothing for now } ras->lock();