Skip to content

Commit cdafb60

Browse files
committed
fix double newline
1 parent 6cf0dce commit cdafb60

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

libogc/console.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -808,11 +808,6 @@ void consolePrintChar(int c)
808808
{
809809
if (c==0) return;
810810

811-
if(currentConsole->cursorX >= currentConsole->windowWidth) {
812-
currentConsole->cursorX = 1;
813-
newRow();
814-
}
815-
816811
switch(c) {
817812
/*
818813
The only special characters we will handle are tab (\t), carriage return (\r), line feed (\n)
@@ -847,6 +842,10 @@ void consolePrintChar(int c)
847842
currentConsole->cursorX = 1;
848843
break;
849844
default:
845+
if(currentConsole->cursorX > currentConsole->windowWidth) {
846+
currentConsole->cursorX = 1;
847+
newRow();
848+
}
850849
__console_drawc(c);
851850
++currentConsole->cursorX ;
852851
break;

0 commit comments

Comments
 (0)