use word copy for extra speed in console scroll
This commit is contained in:
parent
c0a0ec1fb2
commit
35307ad5f2
@ -411,9 +411,9 @@ static void newRow() {
|
|||||||
int i,j;
|
int i,j;
|
||||||
|
|
||||||
for (i=0; i<currentConsole->windowWidth*8; i++) {
|
for (i=0; i<currentConsole->windowWidth*8; i++) {
|
||||||
u16 *from = src;
|
u32 *from = (u32*)((int)src & ~3);
|
||||||
u16 *to = dst;
|
u32 *to = (u32*)((int)dst & ~3);
|
||||||
for (j=0; j<((currentConsole->windowHeight*8));j++) *(to--) = *(from--);
|
for (j=0; j<((currentConsole->windowHeight*8)/2);j++) *(to--) = *(from--);
|
||||||
dst += 240;
|
dst += 240;
|
||||||
src += 240;
|
src += 240;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user