1
0
Fork 0
forked from wry/wry

autocommit 2022-04-04 14:29:04 CEST

This commit is contained in:
Julian Orth 2022-04-04 14:29:04 +02:00
parent 1f71290dab
commit e897d271af
21 changed files with 278 additions and 127 deletions

View file

@ -22,7 +22,7 @@ pub enum GbmError {
DrmFd,
}
type Device = u8;
pub type Device = u8;
type Bo = u8;
pub const GBM_BO_USE_SCANOUT: u32 = 1 << 0;
@ -128,6 +128,10 @@ impl GbmDevice {
}
}
pub fn raw(&self) -> *mut Device {
self.dev
}
pub fn create_bo(
&self,
width: i32,