diff options
Diffstat (limited to 'gpu_display/examples/simple_open.rs')
-rw-r--r-- | gpu_display/examples/simple_open.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu_display/examples/simple_open.rs b/gpu_display/examples/simple_open.rs index bb7b1a2..f1b5721 100644 --- a/gpu_display/examples/simple_open.rs +++ b/gpu_display/examples/simple_open.rs @@ -13,7 +13,7 @@ fn main() { row[x] = b | (g << 8); } mem.as_volatile_slice() - .offset((1280 * 4 * y) as u64) + .offset(1280 * 4 * y) .unwrap() .copy_from(&row); } |