small render_stars speedup for vbt
This commit is contained in:
parent
c533c1162e
commit
ddd14379a7
|
@ -478,7 +478,7 @@ static void render_stars()
|
||||||
if (StarsEnabled) {
|
if (StarsEnabled) {
|
||||||
INT32 StarCounter;
|
INT32 StarCounter;
|
||||||
INT32 SetA, SetB;
|
INT32 SetA, SetB;
|
||||||
|
INT32 transloc;
|
||||||
SetA = ((nCurrentFrame+0x40) & 0x80) ? 1 : 0;
|
SetA = ((nCurrentFrame+0x40) & 0x80) ? 1 : 0;
|
||||||
SetB = (nCurrentFrame & 0x80) ? 2 : 3;
|
SetB = (nCurrentFrame & 0x80) ? 2 : 3;
|
||||||
|
|
||||||
|
@ -490,8 +490,9 @@ static void render_stars()
|
||||||
y = (112 + StarSeedTab[StarCounter].y + StarScrollY) % 256;
|
y = (112 + StarSeedTab[StarCounter].y + StarScrollY) % 256;
|
||||||
|
|
||||||
if (x >= 0 && x < nScreenWidth && y >= 0 && y < nScreenHeight) {
|
if (x >= 0 && x < nScreenWidth && y >= 0 && y < nScreenHeight) {
|
||||||
if (!pTransDraw[(y * nScreenWidth) + x])
|
transloc = (y * nScreenWidth) + x;
|
||||||
pTransDraw[(y * nScreenWidth) + x] = StarSeedTab[StarCounter].Colour + 0x20;
|
if (!pTransDraw[transloc])
|
||||||
|
pTransDraw[transloc] = StarSeedTab[StarCounter].Colour + 0x20;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue