Invert on cursor
This commit is contained in:
parent
2c7efc3c98
commit
cf8e7950a8
2 changed files with 34 additions and 4 deletions
|
@ -163,8 +163,7 @@ impl Screen for TextScreen {
|
|||
if self.console.cursor && self.console.x < self.console.w && self.console.y < self.console.h {
|
||||
let x = self.console.x;
|
||||
let y = self.console.y;
|
||||
let color = self.console.background;
|
||||
self.display.rect(x * 8, y * 16, 8, 16, color.data);
|
||||
self.display.invert(x * 8, y * 16, 8, 16);
|
||||
self.changed.insert(y);
|
||||
}
|
||||
|
||||
|
@ -196,8 +195,7 @@ impl Screen for TextScreen {
|
|||
if self.console.cursor && self.console.x < self.console.w && self.console.y < self.console.h {
|
||||
let x = self.console.x;
|
||||
let y = self.console.y;
|
||||
let color = self.console.foreground;
|
||||
self.display.rect(x * 8, y * 16, 8, 16, color.data);
|
||||
self.display.invert(x * 8, y * 16, 8, 16);
|
||||
self.changed.insert(y);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue