Merge branch 'fix_vesad_damage_clip' into 'master'

vesad: Fix damage clipping

See merge request redox-os/drivers!214
This commit is contained in:
Jeremy Soller
2024-12-23 20:33:50 +00:00
+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);