mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
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:
parent
7a6293ff42
commit
24b994d952
1 changed files with 8 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue