Unmodified
Code: Select all
void BitBlt_FullScreen(void)
{
int x,y, dy = 0;
unsigned long *pVram;
pVram = (unsigned long *)pgGetVramAddr(0, 0);
for (y = 0; y < 224; y++) {
for (x = 0; x < 240; x+=2) {
cpy2x(&pVram[x], (g_Pal[g_ScrBuf[y + 8][x + 16 + 1]] << 16) + g_Pal[g_ScrBuf[y + 8][x + 16]]);
}
pVram += (LINESIZE/2);
dy += 21300;
if (dy >= 100000) {
dy-=100000;
for (x = 0; x < 240; x+=2) {
unsigned long ulColor = PBlend((g_Pal[g_ScrBuf[y + 8 ][x + 16 + 1]] << 16) + g_Pal[g_ScrBuf[y + 8 ][x + 16]],
(g_Pal[g_ScrBuf[y + 8 + 1][x + 16 + 1]] << 16) + g_Pal[g_ScrBuf[y + 8 + 1][x + 16]]);
cpy2x(&pVram[x], ulColor);
}
pVram += (LINESIZE/2);
}
}
}
Modified
Code: Select all
void BitBlt_FullScreen(void)
{
int x,y, dy = 0;
unsigned long *pVram;
pVram = (unsigned long *)pgGetVramAddr((480-240*3.5/2)/2, 0);
for (y = 0; y < 224; y++) {
for (x = 0; x < 240; x+=1.5) {
cpy2x(&pVram[x], (g_Pal[g_ScrBuf[y + 8 ][x + 14 + 1]] << 16) + g_Pal[g_ScrBuf[y + 8 ][x + 14]],
}
pVram += (LINESIZE/2);
dy += 21300;
if (dy >= 100000) {
dy-=100000;
for (x = 0; x < 240; x+=1.5) {
unsigned long ulColor = PBlend((g_Pal[g_ScrBuf[y + 8 ][x + 14 + 1]] << 16) + g_Pal[g_ScrBuf[y + 8 ][x + 14]],
(g_Pal[g_ScrBuf[y + 8 + 1][x + 14 + 1]] << 16) + g_Pal[g_ScrBuf[y + 8 + 1][x + 14]);
cpy2x(&pVram[x], ulColor);
}
pVram += (LINESIZE/2);
}
}
}