[aseprite] 33/128: Show color on status bar when mouse is over ColorTintShadeTone (and not captured)
Tobias Hansen
thansen at moszumanska.debian.org
Mon May 9 21:24:20 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 9cc8d43f0a9d11286556a440a0dc172e1f593aad
Author: David Capello <davidcapello at gmail.com>
Date: Wed Apr 20 09:37:49 2016 -0300
Show color on status bar when mouse is over ColorTintShadeTone (and not captured)
---
src/app/ui/color_tint_shade_tone.cpp | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/src/app/ui/color_tint_shade_tone.cpp b/src/app/ui/color_tint_shade_tone.cpp
index d60526e..20842a7 100644
--- a/src/app/ui/color_tint_shade_tone.cpp
+++ b/src/app/ui/color_tint_shade_tone.cpp
@@ -153,21 +153,20 @@ bool ColorTintShadeTone::onProcessMessage(ui::Message* msg)
// Continue...
- case kMouseMoveMessage:
- if (hasCapture()) {
- MouseMessage* mouseMsg = static_cast<MouseMessage*>(msg);
+ case kMouseMoveMessage: {
+ MouseMessage* mouseMsg = static_cast<MouseMessage*>(msg);
- if (msg->type() == kMouseDownMessage)
+ if (msg->type() == kMouseDownMessage)
m_capturedInHue = inHueBarArea(mouseMsg->position());
- app::Color color = getColorByPosition(mouseMsg->position());
- if (color != app::Color::fromMask()) {
- StatusBar::instance()->showColor(0, "", color);
- if (hasCapture())
- ColorChange(color, mouseMsg->buttons());
- }
+ app::Color color = getColorByPosition(mouseMsg->position());
+ if (color != app::Color::fromMask()) {
+ StatusBar::instance()->showColor(0, "", color);
+ if (hasCapture())
+ ColorChange(color, mouseMsg->buttons());
}
break;
+ }
case kMouseUpMessage:
if (hasCapture()) {
--
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