summaryrefslogtreecommitdiff
path: root/src/resources/dye/dyepalette.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-13 00:29:08 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-13 00:29:08 +0300
commit99208e8f8aba695a6fb0e4ed9f5c51108dd539f4 (patch)
treeaa4bbc7dcb656259e94daf907d339d264f1bcaa0 /src/resources/dye/dyepalette.h
parent1cde3ae4001db3e9bd1d233c64b299a65d55b8b4 (diff)
downloadplus-99208e8f8aba695a6fb0e4ed9f5c51108dd539f4.tar.gz
plus-99208e8f8aba695a6fb0e4ed9f5c51108dd539f4.tar.bz2
plus-99208e8f8aba695a6fb0e4ed9f5c51108dd539f4.tar.xz
plus-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.h5
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