diff options
Diffstat (limited to 'games-fps/eduke32/files/fix-build-transpal.patch')
-rw-r--r-- | games-fps/eduke32/files/fix-build-transpal.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games-fps/eduke32/files/fix-build-transpal.patch b/games-fps/eduke32/files/fix-build-transpal.patch new file mode 100644 index 000000000000..3c22bc405507 --- /dev/null +++ b/games-fps/eduke32/files/fix-build-transpal.patch @@ -0,0 +1,20 @@ +--- a/source/tools/src/transpal.cpp 2017-02-01 11:01:11.000000000 +0100 ++++ b/source/tools/src/transpal.cpp 2018-05-11 00:06:37.329712454 +0200 +@@ -26,7 +26,7 @@ + r = ((ptr[0]*t+32768)>>16); + g = ((ptr[1]*t+32768)>>16); + b = ((ptr[2]*t+32768)>>16); +- return(getclosestcol(r,g,b)); ++ return(paletteGetClosestColor(r,g,b)); + } + + static char gettrans(char dat1, char dat2, int datransratio) +@@ -39,7 +39,7 @@ + r = ptr[0]; r += (((ptr2[0]-r)*datransratio+128)>>8); + g = ptr[1]; g += (((ptr2[1]-g)*datransratio+128)>>8); + b = ptr[2]; b += (((ptr2[2]-b)*datransratio+128)>>8); +- return(getclosestcol(r,g,b)); ++ return(paletteGetClosestColor(r,g,b)); + } + + int main(int argc, char **argv) |