mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-04 04:27:34 +00:00
remove slice size specifier from blitstr2
this makes the api portable
This commit is contained in:
parent
0770d5437f
commit
efb627bf4f
2 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
pub const LINES: isize = 128;
|
||||
pub const WIDTH: isize = 128;
|
||||
pub const WORDS_PER_LINE: usize = WIDTH as usize / core::mem::size_of::<u32>();
|
||||
pub type FrBuf = [u32; WORDS_PER_LINE * LINES as usize];
|
||||
pub type FrBuf = [u32];
|
||||
pub const FB_SIZE: usize = WORDS_PER_LINE * LINES as usize;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
pub const LINES: isize = 536;
|
||||
pub const WIDTH: isize = 336;
|
||||
pub const WORDS_PER_LINE: usize = 11;
|
||||
pub type FrBuf = [u32; WORDS_PER_LINE * LINES as usize];
|
||||
pub type FrBuf = [u32];
|
||||
pub const FB_SIZE: usize = WORDS_PER_LINE * LINES as usize; // 44 bytes by 536 lines
|
||||
|
|
|
|||
Loading…
Reference in a new issue