[aseprite] 59/308: Show ColorSpectrum's indicator white-colored if it's in the dark side
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:44:52 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 c1392909bb8b11902b6be44d07bea22f86a1e10a
Author: David Capello <davidcapello at gmail.com>
Date: Sat Dec 5 16:11:03 2015 -0300
Show ColorSpectrum's indicator white-colored if it's in the dark side
---
data/skins/default/sheet.png | Bin 14029 -> 14034 bytes
src/app/ui/color_spectrum.cpp | 8 +++++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/data/skins/default/sheet.png b/data/skins/default/sheet.png
index b5da4d7..57962f2 100644
Binary files a/data/skins/default/sheet.png and b/data/skins/default/sheet.png differ
diff --git a/src/app/ui/color_spectrum.cpp b/src/app/ui/color_spectrum.cpp
index d6ff1ea..2e59bd3 100644
--- a/src/app/ui/color_spectrum.cpp
+++ b/src/app/ui/color_spectrum.cpp
@@ -139,9 +139,11 @@ void ColorSpectrum::onPaint(ui::PaintEvent& ev)
rc.y + rc.h - (lit * rc.h / 100));
she::Surface* icon = theme->parts.colorWheelIndicator()->bitmap(0);
- g->drawRgbaSurface(icon,
- pos.x-icon->width()/2,
- pos.y-icon->height()/2);
+ g->drawColoredRgbaSurface(
+ icon,
+ lit > 50 ? gfx::rgba(0, 0, 0): gfx::rgba(255, 255, 255),
+ pos.x-icon->width()/2,
+ pos.y-icon->height()/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