[aseprite] 268/308: Don't limit the selection of colors in the spectrum area

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 4e4f473dd69bb725cc3009e86037765dc8fdffbb
Author: David Capello <davidcapello at gmail.com>
Date:   Fri Feb 26 11:13:19 2016 -0300

    Don't limit the selection of colors in the spectrum area
    
    In this way when we capture the mouse, we can move it outside the
    widget and we're still picking colors in the border of the spectrum.
    (Which is useful to select pure black or white.)
---
 src/app/ui/color_spectrum.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/ui/color_spectrum.cpp b/src/app/ui/color_spectrum.cpp
index 9e87e1e..fff4361 100644
--- a/src/app/ui/color_spectrum.cpp
+++ b/src/app/ui/color_spectrum.cpp
@@ -42,7 +42,7 @@ ColorSpectrum::~ColorSpectrum()
 app::Color ColorSpectrum::pickColor(const gfx::Point& pos) const
 {
   gfx::Rect rc = childrenBounds();
-  if (rc.isEmpty() || !rc.contains(pos))
+  if (rc.isEmpty())
     return app::Color::fromMask();
 
   int vmid = (align() & HORIZONTAL ? rc.h/2 : rc.w/2);

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