fix x y swap
This commit is contained in:
@@ -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 / 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) {
|
||||
|
||||
Reference in New Issue
Block a user