File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -752,15 +752,15 @@ static void newRow() {
752752
753753 if (currentConsole -> cursorY > currentConsole -> windowHeight ) {
754754 currentConsole -> cursorY = currentConsole -> windowHeight ;
755- u16 * dst = & currentConsole -> frameBuffer [((currentConsole -> windowX - 1 ) * 8 * 240 ) + (239 - ((currentConsole -> windowY ) * 8 ))];
755+ u16 * dst = & currentConsole -> frameBuffer [((currentConsole -> windowX - 1 ) * 8 * 240 ) + (239 - ((currentConsole -> windowY - 1 ) * 8 ))];
756756 u16 * src = dst - 8 ;
757757
758758 int i ,j ;
759759
760760 for (i = 0 ; i < (currentConsole -> windowWidth )* 8 ; i ++ ) {
761761 u32 * from = (u32 * )((int )src & ~3 );
762762 u32 * to = (u32 * )((int )dst & ~3 );
763- for (j = 0 ;j < (((currentConsole -> windowHeight - 2 )* 8 )/2 );j ++ ) * (to -- ) = * (from -- );
763+ for (j = 0 ;j < (((currentConsole -> windowHeight - 1 )* 8 )/2 );j ++ ) * (to -- ) = * (from -- );
764764 dst += 240 ;
765765 src += 240 ;
766766 }
You can’t perform that action at this time.
0 commit comments