diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-25 01:18:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-25 01:18:10 +0300 |
commit | 971159bb7102962299543d323798fbf43185899a (patch) | |
tree | ed2bff2fa3e753c8a359bffac0ecc9690c5b78ce /src/resources/sdlimagehelper.cpp | |
parent | 69aaf75b49cdf385b03469b82dd05480abf6e8b5 (diff) | |
download | manaverse-971159bb7102962299543d323798fbf43185899a.tar.gz manaverse-971159bb7102962299543d323798fbf43185899a.tar.bz2 manaverse-971159bb7102962299543d323798fbf43185899a.tar.xz manaverse-971159bb7102962299543d323798fbf43185899a.zip |
Switch in replaceAColor into using custom despatcher.
Diffstat (limited to 'src/resources/sdlimagehelper.cpp')
-rw-r--r-- | src/resources/sdlimagehelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index de362ef60..bb339ce20 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -95,7 +95,7 @@ Image *SDLImageHelper::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: |