projects
/
gps-watch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: Tweak bit order of screen data.
[gps-watch.git]
/
src
/
common
/
screen.rs
diff --git
a/src/common/screen.rs
b/src/common/screen.rs
index 71425c40c0c14811f6eed0792250a04cb67133fa..3b890a1847860b197021b7f284d24997a20800ea 100644
(file)
--- a/
src/common/screen.rs
+++ b/
src/common/screen.rs
@@
-29,6
+29,8
@@
pub const WIDTH_BYTES: usize = (WIDTH_PX as usize + 7) / 8;
pub const SIZE_BYTES: usize = HEIGHT_PX as usize * WIDTH_BYTES;
pub struct Screen {
pub const SIZE_BYTES: usize = HEIGHT_PX as usize * WIDTH_BYTES;
pub struct Screen {
+ // Each byte corresponds to 8 pixels, with the MSB referring
+ // to the left-most pixel.
pixels: [u8; SIZE_BYTES],
}
pixels: [u8; SIZE_BYTES],
}