[wip] debug depth woes

This commit is contained in:
Berkus Decker 2019-03-02 19:16:50 +02:00
parent ce05c157a7
commit ec5606c16a
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ impl Display {
// 1. Fix display output so we can print some values
// 2. Print display info
// 3. Go from there.
(y * self.pitch + x * 4/*(self.depth / 8)*/ + self.color_component(chan)) as isize,
(y * self.pitch + x * (self.depth >> 3) + self.color_component(chan)) as isize,
) = c as u8;
}
}