mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 07:04:34 +00:00
stm32h735g: be sure to wait until the the buffer is no longer shown before drawing onto it
This commit is contained in:
parent
4ecc2cd1c0
commit
ceb030a5f7
1 changed files with 1 additions and 0 deletions
|
@ -324,6 +324,7 @@ impl Devices for StmDevices {
|
|||
}
|
||||
|
||||
fn get_buffer(&mut self) -> Option<(&mut [TargetPixel], PhysicalRect)> {
|
||||
while self.layer.is_swap_pending() {}
|
||||
Some((self.work_fb, self.prev_dirty))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue