[aseprite] 103/250: Don't change WebP format options for each image loaded from a sequence

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 24133498b0f096a11970820491c85f97dec21085
Author: David Capello <davidcapello at gmail.com>
Date:   Tue Sep 29 12:07:45 2015 -0300

    Don't change WebP format options for each image loaded from a sequence
---
 src/app/file/webp_format.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/app/file/webp_format.cpp b/src/app/file/webp_format.cpp
index b843c27..ea15518 100644
--- a/src/app/file/webp_format.cpp
+++ b/src/app/file/webp_format.cpp
@@ -154,9 +154,11 @@ bool WebPFormat::onLoad(FileOp* fop)
       break;
   }
 
-  base::SharedPtr<WebPOptions> webPOptions(new WebPOptions());
-  fop->sequenceSetFormatOptions(webPOptions);
-  webPOptions->setLossless(std::min(config.input.format - 1, 1));
+  if (!fop->sequenceGetFormatOptions()) {
+    base::SharedPtr<WebPOptions> webPOptions(new WebPOptions());
+    webPOptions->setLossless(std::min(config.input.format - 1, 1));
+    fop->sequenceSetFormatOptions(webPOptions);
+  }
 
   WebPIDelete(idec);
   WebPFreeDecBuffer(&config.output);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list