mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-22 00:02:40 +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)
|
||||
.ok_or_else(|| format!("Cannot get depth and bpp for pixel format: {format:?}"))?;
|
||||
|
||||
let front_buffer: RefCell<DumbBuffer> = DumbBuffer::allocate(
|
||||
&drm_output.drm_device,
|
||||
drm_output.size(),
|
||||
format,
|
||||
depth,
|
||||
bpp,
|
||||
)
|
||||
.map_err(|err| format!("Could not allocate drm dumb buffer: {err}"))?
|
||||
.into();
|
||||
let front_buffer: RefCell<DumbBuffer> =
|
||||
DumbBuffer::allocate(&drm_output.drm_device, drm_output.size(), format, depth, bpp)
|
||||
.map_err(|err| format!("Could not allocate drm dumb buffer: {err}"))?
|
||||
.into();
|
||||
|
||||
let back_buffer = DumbBuffer::allocate(
|
||||
&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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue