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