Skip to content

Commit b15110b

Browse files
authored
[console.c] correct typo in consoleSetWindow (#225)
1 parent 6876369 commit b15110b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libogc/console.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ void consoleSetWindow(PrintConsole* console, unsigned int x, unsigned int y, uns
11221122
if ( y >= console->con_rows) return;
11231123

11241124
if ( x + width > console->con_cols + 1) width = console->con_cols + 1 - x;
1125-
if ( y + height > console->con_rows + 1) height = console->con_cols + 1 - y;
1125+
if ( y + height > console->con_rows + 1) height = console->con_rows + 1 - y;
11261126

11271127
console->windowWidth = width;
11281128
console->windowHeight = height;

0 commit comments

Comments
 (0)