cleanup?
This commit is contained in:
parent
fc2ebd4ca2
commit
e916ce7259
|
@ -320,11 +320,6 @@ where
|
|||
for e in &mut self.is_bg_zero {
|
||||
*e = true;
|
||||
}
|
||||
for x in 0..WIDTH {
|
||||
self.buffer[(scanline as usize * WIDTH) + x] = ColourInner::Error
|
||||
.rgb_bytes(None, self.cgb_data.is_some())
|
||||
.into();
|
||||
}
|
||||
if self.lcdc.bg_window_enable {
|
||||
self.render_scanline_bg(scanline);
|
||||
if self.lcdc.window_enable {
|
||||
|
@ -457,7 +452,6 @@ where
|
|||
let x_addr = if object.flags.x_flip { px_x } else { 7 - px_x };
|
||||
let lsb = get_bit(lsbs, x_addr);
|
||||
let msb = get_bit(msbs, x_addr);
|
||||
// maybe have to change this for cgb mode
|
||||
let (colour, is_zero) = if self.is_cgb_mode() {
|
||||
(ColourInner::from_bits(lsb, msb), !lsb && !msb)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue