output-schedule: fix hardware cursor updates
This commit is contained in:
parent
163bb2c893
commit
7e40e90c4d
3 changed files with 8 additions and 0 deletions
|
|
@ -173,6 +173,9 @@ impl MetalConnector {
|
|||
_ => return Ok(()),
|
||||
};
|
||||
|
||||
if self.has_damage.get() > 0 || self.cursor_damage.get() {
|
||||
node.schedule.commit_cursor();
|
||||
}
|
||||
self.latch_cursor(&node)?;
|
||||
let cursor_programming = self.compute_cursor_programming();
|
||||
let latched = self.latch(&node);
|
||||
|
|
|
|||
|
|
@ -165,6 +165,10 @@ impl OutputSchedule {
|
|||
break;
|
||||
}
|
||||
}
|
||||
self.commit_cursor();
|
||||
}
|
||||
|
||||
pub fn commit_cursor(&self) {
|
||||
if self.needs_hardware_cursor_commit.take() {
|
||||
if let Some(hc) = self.hardware_cursor.get() {
|
||||
hc.damage();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue