1
0
Fork 0
forked from wry/wry

all: implement output transforms

This commit is contained in:
Julian Orth 2024-02-27 23:32:40 +01:00
parent 79df8d69f4
commit b7d2964e19
20 changed files with 254 additions and 71 deletions

View file

@ -10,6 +10,7 @@ use {
INVALID_MODIFIER, LINEAR_MODIFIER,
},
},
jay_config::video::Transform,
std::{ops::Deref, rc::Rc},
thiserror::Error,
uapi::OwnedFd,
@ -76,6 +77,7 @@ pub fn take_screenshot(state: &State) -> Result<Screenshot, ScreenshooterError>
Scale::from_int(1),
true,
false,
Transform::None,
);
let drm = gbm.drm.dup_render()?.fd().clone();
Ok(Screenshot { drm, bo })