mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-31 00:32:48 +00:00
Don't access newBlend preference from background threads
Continuation of 673e1955fa10e8ce643c80f64c439852b543f62a
This commit is contained in:
parent
9c98f9c4df
commit
c6fb34ef4a
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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<num; ++n) {
|
||||
render.renderSprite(image.get(), sprite, n);
|
||||
|
Loading…
x
Reference in New Issue
Block a user