Skip to content

Commit e1bcfd2

Browse files
committed
limit position to window dimensions, not underlying console dimensions
1 parent 633f118 commit e1bcfd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libogc/console.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,10 @@ static inline void consolePosition(int x, int y) {
491491
y = 1;
492492

493493
// clip to console edge
494-
if(x > currentConsole->con_cols)
495-
x = currentConsole->con_cols;
496-
if(y > currentConsole->con_rows)
497-
y = currentConsole->con_rows;
494+
if(x > currentConsole->windowWidth)
495+
x = currentConsole->windowWidth;
496+
if(y > currentConsole->windowHeight)
497+
y = currentConsole->windowHeight;
498498

499499
currentConsole->cursorX = x;
500500
currentConsole->cursorY = y;

0 commit comments

Comments
 (0)