1
0
Fork 0
forked from wry/wry

output-schedule: fix hardware cursor updates

This commit is contained in:
Julian Orth 2024-10-29 08:49:51 +01:00
parent 163bb2c893
commit 7e40e90c4d
3 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,6 @@
# Unreleased
- Various bugfixes.
- Add support fo ext-data-control-v1.
# 1.7.0 (2024-10-25)

View file

@ -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);

View file

@ -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();