diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-13 00:29:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-13 00:29:08 +0300 |
commit | 99208e8f8aba695a6fb0e4ed9f5c51108dd539f4 (patch) | |
tree | aa4bbc7dcb656259e94daf907d339d264f1bcaa0 /src/resources/dye/dyepalette.h | |
parent | 1cde3ae4001db3e9bd1d233c64b299a65d55b8b4 (diff) | |
download | mv-99208e8f8aba695a6fb0e4ed9f5c51108dd539f4.tar.gz mv-99208e8f8aba695a6fb0e4ed9f5c51108dd539f4.tar.bz2 mv-99208e8f8aba695a6fb0e4ed9f5c51108dd539f4.tar.xz mv-99208e8f8aba695a6fb0e4ed9f5c51108dd539f4.zip |
Add support for hex colors in dye palettes from GIMP file.
Diffstat (limited to 'src/resources/dye/dyepalette.h')
-rw-r--r-- | src/resources/dye/dyepalette.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/dye/dyepalette.h b/src/resources/dye/dyepalette.h index d27fba095..d405aaae1 100644 --- a/src/resources/dye/dyepalette.h +++ b/src/resources/dye/dyepalette.h @@ -85,6 +85,11 @@ class DyePalette final static unsigned int hexDecode(const signed char c) A_CONST A_WARN_UNUSED; + + static void hexToColor(const std::string &hexStr, + const int blockSize, + DyeColor &color); + #ifndef UNITTESTS private: #endif |