Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions libwayshot/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ impl Dispatch<ExtImageCopyCaptureSessionV1, ()> for CaptureFrameState {
ext_image_copy_capture_session_v1::Event::BufferSize { width, height } => {
state.session_size.width = width;
state.session_size.height = height;
//formats is guaranteed to have at least one element due to the check above
for format in &mut state.formats {
format.size = Size { width, height };
format.stride = 4 * width;
Expand All @@ -325,8 +324,6 @@ impl Dispatch<ExtImageCopyCaptureSessionV1, ()> for CaptureFrameState {
size: state.session_size,
stride: 4 * state.session_size.width,
});
let set_format = &mut state.formats[0];
set_format.format = format;
}
ext_image_copy_capture_session_v1::Event::DmabufDevice { device } => {
if !state.find_gbm {
Expand Down