use macro

main
Eggert Jung 6 months ago
parent db3e15449f
commit ef082a96fa

@ -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) {

Loading…
Cancel
Save