summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-25 01:18:10 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-25 01:18:10 +0300
commit971159bb7102962299543d323798fbf43185899a (patch)
treeed2bff2fa3e753c8a359bffac0ecc9690c5b78ce /src/resources/imagehelper.cpp
parent69aaf75b49cdf385b03469b82dd05480abf6e8b5 (diff)
downloadplus-971159bb7102962299543d323798fbf43185899a.tar.gz
plus-971159bb7102962299543d323798fbf43185899a.tar.bz2
plus-971159bb7102962299543d323798fbf43185899a.tar.xz
plus-971159bb7102962299543d323798fbf43185899a.zip
Switch in replaceAColor into using custom despatcher.
Diffstat (limited to 'src/resources/imagehelper.cpp')
-rw-r--r--src/resources/imagehelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/imagehelper.cpp b/src/resources/imagehelper.cpp
index c05ac5816..e7e3dea14 100644
--- a/src/resources/imagehelper.cpp
+++ b/src/resources/imagehelper.cpp
@@ -110,7 +110,7 @@ Image *ImageHelper::load(SDL_RWops *const rw, Dye const &dye)
{
const DyePalette *const pal = dye.getAPalete();
if (pal)
- pal->replaceAColor(pixels, surf->w * surf->h);
+ DYEPALETTEP(pal, AColor)(pixels, surf->w * surf->h);
break;
}
case 0: