From ef082a96fa1bcf90f62f3f6e0969ff11ec35833f Mon Sep 17 00:00:00 2001 From: Eggert Jung Date: Fri, 18 Apr 2025 17:55:51 +0200 Subject: [PATCH] use macro --- arch/cga.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/cga.cc b/arch/cga.cc index e021267..355ab90 100644 --- a/arch/cga.cc +++ b/arch/cga.cc @@ -27,8 +27,8 @@ void getCursor(unsigned& abs_x, unsigned& abs_y) { uint16_t pos = readCGAReg(RegisterIndex::CURSOR_LOW); pos |= (readCGAReg(RegisterIndex::CURSOR_HIGH) << 8); - abs_x = pos / 80; - abs_y = pos % 80; + abs_x = pos / COLUMNS; + abs_y = pos % COLUMNS; } void show(unsigned abs_x, unsigned abs_y, char character, Attribute attrib) {