summaryrefslogtreecommitdiff
path: root/src/resources/dye/dyepalette.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-21 23:02:27 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-21 23:15:11 +0300
commit6addecc3615d5e3f9caaafd39aa639c8ff49115b (patch)
treed448d51378fbf6b05215109632734212b51d27e7 /src/resources/dye/dyepalette.cpp
parente59b20b4cff4bf54c0b2ea91dbf09345da9d5fe4 (diff)
downloadplus-6addecc3615d5e3f9caaafd39aa639c8ff49115b.tar.gz
plus-6addecc3615d5e3f9caaafd39aa639c8ff49115b.tar.bz2
plus-6addecc3615d5e3f9caaafd39aa639c8ff49115b.tar.xz
plus-6addecc3615d5e3f9caaafd39aa639c8ff49115b.zip
Use precalculated values for A and S dyes.
Diffstat (limited to 'src/resources/dye/dyepalette.cpp')
-rw-r--r--src/resources/dye/dyepalette.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/dye/dyepalette.cpp b/src/resources/dye/dyepalette.cpp
index 76f82b439..28efd76ba 100644
--- a/src/resources/dye/dyepalette.cpp
+++ b/src/resources/dye/dyepalette.cpp
@@ -109,6 +109,7 @@ void DyePalette::hexToColor(const std::string &restrict hexStr,
hexDecode(hexStr[i]) << 4)
+ hexDecode(hexStr[i + 1]));
}
+ color.update();
}
unsigned int DyePalette::hexDecode(const signed char c) noexcept2