[aseprite] 02/134: Show color hex code in status bar (fix #508)

Tobias Hansen thansen at moszumanska.debian.org
Sat Mar 14 17:09:52 UTC 2015


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

thansen pushed a commit to branch master
in repository aseprite.

commit bac579b774124d6fccc8336d4d971e993464fe72
Author: David Capello <davidcapello at gmail.com>
Date:   Thu Oct 23 10:58:46 2014 -0300

    Show color hex code in status bar (fix #508)
---
 src/app/color.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/app/color.cpp b/src/app/color.cpp
index 0fa7d46..2cb0b9e 100644
--- a/src/app/color.cpp
+++ b/src/app/color.cpp
@@ -262,6 +262,11 @@ std::string Color::toHumanReadableString(PixelFormat pixelFormat, HumanReadableS
         ASSERT(false);
         break;
     }
+
+    result << " #" << std::hex << std::setfill('0')
+           << std::setw(2) << getRed()
+           << std::setw(2) << getGreen()
+           << std::setw(2) << getBlue();
   }
   else if (humanReadable == ShortHumanReadableString) {
     switch (getType()) {

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