summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-25 00:55:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-25 00:55:33 +0300
commit69aaf75b49cdf385b03469b82dd05480abf6e8b5 (patch)
treeb2a14ea29c6bdd5b06f4812a378bd1f5325f206d /src/resources/openglimagehelper.cpp
parent3480f3ad939e2ae5d0191ed739a57e834658c32e (diff)
downloadmanaplus-69aaf75b49cdf385b03469b82dd05480abf6e8b5.tar.gz
manaplus-69aaf75b49cdf385b03469b82dd05480abf6e8b5.tar.bz2
manaplus-69aaf75b49cdf385b03469b82dd05480abf6e8b5.tar.xz
manaplus-69aaf75b49cdf385b03469b82dd05480abf6e8b5.zip
Switch in replaceSOGLColor into using custom despatcher.
Diffstat (limited to 'src/resources/openglimagehelper.cpp')
-rw-r--r--src/resources/openglimagehelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp
index 391c3b9b5..9f19c3e95 100644
--- a/src/resources/openglimagehelper.cpp
+++ b/src/resources/openglimagehelper.cpp
@@ -89,7 +89,7 @@ Image *OpenGLImageHelper::load(SDL_RWops *const rw, Dye const &dye)
{
const DyePalette *const pal = dye.getSPalete();
if (pal)
- pal->replaceSOGLColor(pixels, surf->w * surf->h);
+ DYEPALETTEP(pal, SOGLColor)(pixels, surf->w * surf->h);
break;
}
case 2: