mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
Fix building the Build tools
git-svn-id: https://svn.eduke32.com/eduke32@6924 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f873b551a8
commit
652c0044a1
2 changed files with 3 additions and 2 deletions
|
@ -218,6 +218,7 @@ engine_tools_objs := \
|
|||
cache1d.cpp \
|
||||
crc32.cpp \
|
||||
colmatch.cpp \
|
||||
lz4.cpp \
|
||||
|
||||
ifeq (0,$(NOASM))
|
||||
engine_objs += a.nasm
|
||||
|
|
|
@ -26,7 +26,7 @@ static char getshade(char dashade, char dacol)
|
|||
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 @@ static char gettrans(char dat1, char dat2, int datransratio)
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue