]> Chaos Git - corbenik/ctrulib.git/commitdiff
fix scroll size
authorDave Murphy <davem@devkitpro.org>
Fri, 12 Dec 2014 13:40:54 +0000 (13:40 +0000)
committerDave Murphy <davem@devkitpro.org>
Fri, 12 Dec 2014 13:40:54 +0000 (13:40 +0000)
libctru/source/console.c

index 19e0f9555cedb12c7bba75d7d6bcfa1d4fc729cc..040955b27c54495344636891ec489be8fbd9aab6 100644 (file)
@@ -413,7 +413,7 @@ static void newRow() {
                for (i=0; i<currentConsole->windowWidth*8; i++) {\r
                        u32 *from = (u32*)((int)src & ~3);\r
                        u32 *to = (u32*)((int)dst & ~3);\r
-                       for (j=0; j<((currentConsole->windowHeight*8)/2);j++) *(to--) = *(from--);\r
+                       for (j=0;j<(((currentConsole->windowHeight-1)*8)/2);j++) *(to--) = *(from--);\r
                        dst += 240;\r
                        src += 240;\r
                }\r