[aseprite] 260/308: Fix usage of indexed colors in grayscale images

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:45:18 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 155c74a633f38be850c1084828e3eb27eec1d9f8
Author: David Capello <davidcapello at gmail.com>
Date:   Wed Feb 24 18:22:51 2016 -0300

    Fix usage of indexed colors in grayscale images
---
 src/app/color.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/color.cpp b/src/app/color.cpp
index 6f2b3d5..12dd7a3 100644
--- a/src/app/color.cpp
+++ b/src/app/color.cpp
@@ -585,7 +585,7 @@ int Color::getGray() const
     case Color::RgbType:
       return int(255.0 * Hsv(Rgb(m_value.rgb.r,
                                  m_value.rgb.g,
-                                 m_value.rgb.b)).value() / 100.0);
+                                 m_value.rgb.b)).value());
 
     case Color::HsvType:
       return int(255.0 * m_value.hsv.v / 100.0);
@@ -599,7 +599,7 @@ int Color::getGray() const
         uint32_t c = get_current_palette()->getEntry(i);
         return int(255.0 * Hsv(Rgb(rgba_getr(c),
                                    rgba_getg(c),
-                                   rgba_getb(c))).value() / 100.0);
+                                   rgba_getb(c))).value());
       }
       else
         return 0;

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