fix x y swap

main
Eggert Jung 6 months ago
parent 16ceb1a157
commit 85d900b4f2

@ -27,8 +27,8 @@ void getCursor(unsigned& abs_x, unsigned& abs_y) {
uint16_t pos = readCGAReg(RegisterIndex::CURSOR_LOW); uint16_t pos = readCGAReg(RegisterIndex::CURSOR_LOW);
pos |= (readCGAReg(RegisterIndex::CURSOR_HIGH) << 8); pos |= (readCGAReg(RegisterIndex::CURSOR_HIGH) << 8);
abs_x = pos / COLUMNS; abs_y = pos / COLUMNS;
abs_y = pos % COLUMNS; abs_x = pos % COLUMNS;
} }
void show(unsigned abs_x, unsigned abs_y, char character, Attribute attrib) { void show(unsigned abs_x, unsigned abs_y, char character, Attribute attrib) {

Loading…
Cancel
Save