Add a Buffer::present_with_damage() method
Supported on Wayland, X11, and Win32. Fixes https://github.com/rust-windowing/softbuffer/issues/39. try_for_each
This commit is contained in:
parent
f12aa534e1
commit
c1d6716eec
7 changed files with 186 additions and 78 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use raw_window_handle::OrbitalWindowHandle;
|
||||
use std::{cmp, num::NonZeroU32, slice, str};
|
||||
|
||||
use crate::SoftBufferError;
|
||||
use crate::{Rect, SoftBufferError};
|
||||
|
||||
struct OrbitalMap {
|
||||
address: usize,
|
||||
|
|
@ -186,4 +186,8 @@ impl<'a> BufferImpl<'a> {
|
|||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn present_with_damage(self, _damage: &[Rect]) -> Result<(), SoftBufferError> {
|
||||
self.present()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue