use word copy for extra speed in console scroll

This commit is contained in:
Dave Murphy 2014-12-12 12:18:00 +00:00
parent c0a0ec1fb2
commit 35307ad5f2

View File

@ -411,9 +411,9 @@ static void newRow() {
int i,j;
for (i=0; i<currentConsole->windowWidth*8; i++) {
u16 *from = src;
u16 *to = dst;
for (j=0; j<((currentConsole->windowHeight*8));j++) *(to--) = *(from--);
u32 *from = (u32*)((int)src & ~3);
u32 *to = (u32*)((int)dst & ~3);
for (j=0; j<((currentConsole->windowHeight*8)/2);j++) *(to--) = *(from--);
dst += 240;
src += 240;
}