mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-22 08:12:48 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
43acb069b7
commit
c50f7ba73b
2 changed files with 6 additions and 10 deletions
|
@ -35,15 +35,10 @@ impl DumbBufferDisplay {
|
||||||
let (depth, bpp) = pixel_format_params(format)
|
let (depth, bpp) = pixel_format_params(format)
|
||||||
.ok_or_else(|| format!("Cannot get depth and bpp for pixel format: {format:?}"))?;
|
.ok_or_else(|| format!("Cannot get depth and bpp for pixel format: {format:?}"))?;
|
||||||
|
|
||||||
let front_buffer: RefCell<DumbBuffer> = DumbBuffer::allocate(
|
let front_buffer: RefCell<DumbBuffer> =
|
||||||
&drm_output.drm_device,
|
DumbBuffer::allocate(&drm_output.drm_device, drm_output.size(), format, depth, bpp)
|
||||||
drm_output.size(),
|
.map_err(|err| format!("Could not allocate drm dumb buffer: {err}"))?
|
||||||
format,
|
.into();
|
||||||
depth,
|
|
||||||
bpp,
|
|
||||||
)
|
|
||||||
.map_err(|err| format!("Could not allocate drm dumb buffer: {err}"))?
|
|
||||||
.into();
|
|
||||||
|
|
||||||
let back_buffer = DumbBuffer::allocate(
|
let back_buffer = DumbBuffer::allocate(
|
||||||
&drm_output.drm_device,
|
&drm_output.drm_device,
|
||||||
|
|
|
@ -274,7 +274,8 @@ impl DrmOutput {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Err(format!("No available formats found for current plane with CRTC {:?}", self.crtc).into())
|
Err(format!("No available formats found for current plane with CRTC {:?}", self.crtc)
|
||||||
|
.into())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn size(&self) -> (u32, u32) {
|
pub fn size(&self) -> (u32, u32) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue