We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81312b3 commit be6b03fCopy full SHA for be6b03f
1 file changed
libogc/console.c
@@ -808,11 +808,6 @@ void consolePrintChar(int c)
808
{
809
if (c==0) return;
810
811
- if(currentConsole->cursorX >= currentConsole->windowWidth) {
812
- currentConsole->cursorX = 1;
813
- newRow();
814
- }
815
-
816
switch(c) {
817
/*
818
The only special characters we will handle are tab (\t), carriage return (\r), line feed (\n)
@@ -847,6 +842,10 @@ void consolePrintChar(int c)
847
842
currentConsole->cursorX = 1;
848
843
break;
849
844
default:
845
+ if(currentConsole->cursorX > currentConsole->windowWidth) {
846
+ currentConsole->cursorX = 1;
+ newRow();
+ }
850
__console_drawc(c);
851
++currentConsole->cursorX ;
852
0 commit comments