From 89d625981930a41adb9832f2a8017d76dbc1ef59 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Fri, 14 Aug 2020 18:51:15 +0800 Subject: [PATCH] graphics: correct the default color Signed-off-by: Sean Cross --- examples/graphics/src/backend/minifb.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/graphics/src/backend/minifb.rs b/examples/graphics/src/backend/minifb.rs index 88ac1b67c..ce78b3abe 100644 --- a/examples/graphics/src/backend/minifb.rs +++ b/examples/graphics/src/backend/minifb.rs @@ -4,8 +4,8 @@ use minifb::{Key, Window, WindowOptions}; const WIDTH: usize = 336; const HEIGHT: usize = 536; const MAX_FPS: u64 = 15; -const LIGHT_COLOUR: u32 = 0xB5B5AD; -const DARK_COLOUR: u32 = 0x1B1B19; +const DARK_COLOUR: u32 = 0xB5B5AD; +const LIGHT_COLOUR: u32 = 0x1B1B19; pub struct XousDisplay { buffer: Vec, //[u32; WIDTH * HEIGHT], @@ -33,7 +33,7 @@ impl XousDisplay { 1000 * 1000 / MAX_FPS, ))); - let buffer = vec![0u32; WIDTH * HEIGHT]; + let buffer = vec![DARK_COLOUR; WIDTH * HEIGHT]; window.update_with_buffer(&buffer, WIDTH, HEIGHT).unwrap(); XousDisplay { buffer, window }