diff --git a/src/app/file/file.h b/src/app/file/file.h index 796fb8922..250616654 100644 --- a/src/app/file/file.h +++ b/src/app/file/file.h @@ -175,6 +175,8 @@ namespace app { void setEmbeddedColorProfile() { m_embeddedColorProfile = true; } bool hasEmbeddedColorProfile() const { return m_embeddedColorProfile; } + bool newBlend() const { return m_newBlend; } + private: FileOp(); // Undefined FileOp(FileOpType type, Context* context); diff --git a/src/app/file/fli_format.cpp b/src/app/file/fli_format.cpp index eaf30fb73..5cfffbac8 100644 --- a/src/app/file/fli_format.cpp +++ b/src/app/file/fli_format.cpp @@ -217,7 +217,7 @@ bool FliFormat::onSave(FileOp* fop) // Create the bitmaps ImageRef bmp(Image::create(IMAGE_INDEXED, sprite->width(), sprite->height())); render::Render render; - render.setNewBlend(Preferences::instance().experimental.newBlend()); + render.setNewBlend(fop->newBlend()); // Write frame by frame flic::Frame fliFrame; diff --git a/src/app/file/gif_format.cpp b/src/app/file/gif_format.cpp index f0aead6ab..e57faf4f0 100644 --- a/src/app/file/gif_format.cpp +++ b/src/app/file/gif_format.cpp @@ -1333,7 +1333,7 @@ private: void renderFrame(frame_t frame, Image* dst) { render::Render render; - render.setNewBlend(Preferences::instance().experimental.newBlend()); + render.setNewBlend(m_fop->newBlend()); render.setBgType(render::BgType::NONE); clear_image(dst, m_clearColor); diff --git a/src/app/file/ico_format.cpp b/src/app/file/ico_format.cpp index 9a6d08476..da4964d2d 100644 --- a/src/app/file/ico_format.cpp +++ b/src/app/file/ico_format.cpp @@ -285,7 +285,7 @@ bool IcoFormat::onSave(FileOp* fop) sprite->height())); render::Render render; - render.setNewBlend(Preferences::instance().experimental.newBlend()); + render.setNewBlend(fop->newBlend()); for (n=frame_t(0); n