]> Chaos Git - corbenik/ctrulib.git/commitdiff
flush buffers on newline & screen clear
authorDave Murphy <davem@devkitpro.org>
Sun, 15 Feb 2015 13:24:05 +0000 (13:24 +0000)
committerDave Murphy <davem@devkitpro.org>
Sun, 15 Feb 2015 13:24:05 +0000 (13:24 +0000)
libctru/source/console.c

index 699f83a8fc3ad946e8c55c541493c793729dc819..6346d25441151f31f956b3956c40d5cc1629115b 100644 (file)
@@ -121,6 +121,7 @@ static void consoleCls(char mode) {
                        break;\r
                }\r
        }\r
+       gfxFlushBuffers();\r
 }\r
 //---------------------------------------------------------------------------------\r
 static void consoleClearLine(char mode) {\r
@@ -173,6 +174,7 @@ static void consoleClearLine(char mode) {
                        break;\r
                }\r
        }\r
+       gfxFlushBuffers();\r
 }\r
 \r
 \r
@@ -605,6 +607,7 @@ static void newRow() {
                }\r
 \r
                consoleClearLine('2');\r
+               gfxFlushBuffers();\r
        }\r
 }\r
 //---------------------------------------------------------------------------------\r
@@ -718,6 +721,7 @@ void consolePrintChar(int c) {
                        newRow();\r
                case 13:\r
                        currentConsole->cursorX  = 0;\r
+                       gfxFlushBuffers();\r
                        break;\r
                default:\r
                        consoleDrawChar(c);\r