This commit is contained in:
lokathor 2022-10-21 17:40:47 -06:00
parent 7ad9a03ff7
commit fa490b4cd8

View file

@ -347,9 +347,9 @@ impl VideoMode3Bitmap {
/// Video mode 4 has two 8bpp indexmaps. /// Video mode 4 has two 8bpp indexmaps.
/// ///
/// Because VRAM can't be written with less than `u16` at a time, the scanlines /// Because VRAM can't be written with less than 2 bytes at a time, the
/// here use `u8x2` to represent pixels pairs so that all the writes are at /// scanlines here use `u8x2` to represent pixels pairs so that all the writes
/// least `u16` large. /// are at least 2 bytes large.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash)] #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct VideoMode4Frame(usize); pub struct VideoMode4Frame(usize);
impl VideoMode4Frame { impl VideoMode4Frame {