One of those stupid optimizations you notice the potential for when scrolling through code looking for something

git-svn-id: https://svn.eduke32.com/eduke32@7756 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-07-06 16:30:23 +00:00 committed by Christoph Oelckers
parent 7a6293ff42
commit 24b994d952

View file

@ -690,21 +690,22 @@ void tspritevline(int32_t bx, int32_t by, bssize_t cnt, intptr_t bufplc, intptr_
}
void setupdrawslab(int32_t dabpl, intptr_t pal)
{ bpl = dabpl; gpal = (char *)pal; }
{
bpl = dabpl;
gpal = (char *)pal;
}
void drawslab(int32_t dx, int32_t v, int32_t dy, int32_t vi, intptr_t vptr, intptr_t p)
{
int32_t x;
while (dy > 0)
do
{
char c = gpal[(int32_t)(*(char *)((v>>16)+vptr))];
for (x=0; x < dx; x++)
char const c = gpal[(int32_t)(*(char *)((v>>16)+vptr))];
for (int x=0; x < dx; x++)
((char*)p)[x] = c;
p += bpl;
v += vi;
dy--;
}
while (--dy);
}
#if 0