[aseprite] 239/308: Shade ink should use the full palette when we select just one color (fix #947)

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:45:15 UTC 2016


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

thansen pushed a commit to branch master
in repository aseprite.

commit 8ca5b0c2f72e611c852de7904250043337257c1e
Author: David Capello <davidcapello at gmail.com>
Date:   Mon Feb 15 17:30:01 2016 -0300

    Shade ink should use the full palette when we select just one color (fix #947)
---
 src/app/ui/context_bar.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/app/ui/context_bar.cpp b/src/app/ui/context_bar.cpp
index 79ec06a..f3e334f 100644
--- a/src/app/ui/context_bar.cpp
+++ b/src/app/ui/context_bar.cpp
@@ -383,7 +383,10 @@ class ContextBar::InkShadesField : public HBox {
       base::UniquePtr<doc::Remap> remap;
       Shade colors = getShade();
 
-      if (colors.size() > 0) {
+      // We need two or more colors to create a shading remap. In
+      // other case, the ShadingInkProcessing will use the full
+      // color palette.
+      if (colors.size() > 1) {
         remap.reset(new doc::Remap(get_current_palette()->size()));
 
         for (int i=0; i<remap->size(); ++i)

-- 
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