summaryrefslogtreecommitdiffstats
path: root/rsnix/src/gop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rsnix/src/gop.rs')
-rw-r--r--rsnix/src/gop.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/rsnix/src/gop.rs b/rsnix/src/gop.rs
index fa14eae..77cc514 100644
--- a/rsnix/src/gop.rs
+++ b/rsnix/src/gop.rs
@@ -167,7 +167,11 @@ impl Framebuffer {
167 if SHADOW.is_null() { 167 if SHADOW.is_null() {
168 // No shadow (allocation failed): fall back to shifting the 168 // No shadow (allocation failed): fall back to shifting the
169 // display directly. 169 // display directly.
170 ptr::copy(self.base.add(n * row_bytes), self.base, total - n * row_bytes); 170 ptr::copy(
171 self.base.add(n * row_bytes),
172 self.base,
173 total - n * row_bytes,
174 );
171 let last_row = self.base.add(total - n * row_bytes); 175 let last_row = self.base.add(total - n * row_bytes);
172 for i in 0..(n * row_words) { 176 for i in 0..(n * row_words) {
173 ptr::write_volatile(last_row.add(i * 4) as *mut u32, self.bg); 177 ptr::write_volatile(last_row.add(i * 4) as *mut u32, self.bg);