mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
graphics: correct the default color
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
dc3dc20bd3
commit
89d6259819
1 changed files with 3 additions and 3 deletions
|
|
@ -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>, //[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 }
|
||||
|
|
|
|||
Loading…
Reference in a new issue