From b70fb738a6bff84b742df873ea2073380a27521e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 17 Jan 2008 08:46:46 +0000 Subject: [PATCH] clip cursor position just in case. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23581 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/platform/atari_m68k/console.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/boot/platform/atari_m68k/console.cpp b/src/system/boot/platform/atari_m68k/console.cpp index d4f10c1365..94d664e07f 100644 --- a/src/system/boot/platform/atari_m68k/console.cpp +++ b/src/system/boot/platform/atari_m68k/console.cpp @@ -205,6 +205,8 @@ void console_set_cursor(int32 x, int32 y) { char buff[] = "\033Y "; + x = MIN(79,MAX(0,x)); + y = MIN(24,MAX(0,y)); buff[3] += (char)x; buff[2] += (char)y; sInput.WriteAt(NULL, 0LL, buff, 4);