vesad: Fix damage clipping

oops
This commit is contained in:
bjorn3
2024-12-23 21:29:42 +01:00
parent 4c1658bbfe
commit db9ee0a495
+1 -1
View File
@@ -121,8 +121,8 @@ impl GraphicScreen {
pub fn sync(&mut self, framebuffer: &mut FrameBuffer, sync_rects: &[Damage]) {
for sync_rect in sync_rects {
let sync_rect = sync_rect.clip(
self.height.try_into().unwrap(),
self.width.try_into().unwrap(),
self.height.try_into().unwrap(),
);
let start_x: usize = sync_rect.x.try_into().unwrap_or(0);