cleanup?
This commit is contained in:
parent
fc2ebd4ca2
commit
e916ce7259
|
@ -320,11 +320,6 @@ where
|
||||||
for e in &mut self.is_bg_zero {
|
for e in &mut self.is_bg_zero {
|
||||||
*e = true;
|
*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 {
|
if self.lcdc.bg_window_enable {
|
||||||
self.render_scanline_bg(scanline);
|
self.render_scanline_bg(scanline);
|
||||||
if self.lcdc.window_enable {
|
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 x_addr = if object.flags.x_flip { px_x } else { 7 - px_x };
|
||||||
let lsb = get_bit(lsbs, x_addr);
|
let lsb = get_bit(lsbs, x_addr);
|
||||||
let msb = get_bit(msbs, 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() {
|
let (colour, is_zero) = if self.is_cgb_mode() {
|
||||||
(ColourInner::from_bits(lsb, msb), !lsb && !msb)
|
(ColourInner::from_bits(lsb, msb), !lsb && !msb)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue