From 9aef2eb7b4b02de10146b8b31493d2b248c0d654 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 16 Sep 2021 03:53:04 +0800 Subject: [PATCH] fix dirty rectangles on resume --- services/graphics-server/src/backend/betrusted.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/graphics-server/src/backend/betrusted.rs b/services/graphics-server/src/backend/betrusted.rs index 20d0e4987..e0a6b7197 100644 --- a/services/graphics-server/src/backend/betrusted.rs +++ b/services/graphics-server/src/backend/betrusted.rs @@ -115,10 +115,9 @@ impl XousDisplay { if drew_note { let note = crate::sleep_note::LOGO_MAP; let note_lines = note.len() / FB_WIDTH_WORDS; - let start_line = (FB_LINES - note_lines) / 2; let hwfb: *mut [u32; FB_SIZE] = self.hwfb.as_mut_ptr() as *mut [u32; FB_SIZE]; - for lines in start_line..start_line + note_lines { - // set the dirty bits to force a redraw of the restored data + for lines in 0..FB_LINES { + // set the dirty bits of all lines to force a redraw of the restored data unsafe { (*hwfb)[lines * FB_WIDTH_WORDS + (FB_WIDTH_WORDS - 1)] |= 0x1_0000; }