summaryrefslogtreecommitdiff
path: root/src/resources/openglimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-25 02:08:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-25 02:08:50 +0300
commit1437254152868e8fa3f11d5b5f08dd3ee5d89ee4 (patch)
tree8cfe61959c3cf6fa1a7c28ed31b2440c6b3b7070 /src/resources/openglimagehelper.cpp
parent971159bb7102962299543d323798fbf43185899a (diff)
downloadplus-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.tar.gz
plus-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.tar.bz2
plus-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.tar.xz
plus-1437254152868e8fa3f11d5b5f08dd3ee5d89ee4.zip
Switch in replaceAOGLColor 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 9f19c3e95..d854c0666 100644
--- a/src/resources/openglimagehelper.cpp
+++ b/src/resources/openglimagehelper.cpp
@@ -96,7 +96,7 @@ Image *OpenGLImageHelper::load(SDL_RWops *const rw, Dye const &dye)
{
const DyePalette *const pal = dye.getAPalete();
if (pal)
- pal->replaceAOGLColor(pixels, surf->w * surf->h);
+ DYEPALETTEP(pal, AOGLColor)(pixels, surf->w * surf->h);
break;
}
case 0: