hotfix: add back skip_bios function
This commit is contained in:
parent
d8dd99c9e4
commit
5aa2e9380b
|
@ -198,6 +198,15 @@ impl Gpu {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn skip_bios(&mut self) {
|
||||||
|
for i in 0..2 {
|
||||||
|
self.bg_aff[i].pa = 0x100;
|
||||||
|
self.bg_aff[i].pb = 0;
|
||||||
|
self.bg_aff[i].pc = 0;
|
||||||
|
self.bg_aff[i].pd = 0x100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// helper method that reads the palette index from a base address and x + y
|
/// helper method that reads the palette index from a base address and x + y
|
||||||
pub fn read_pixel_index(&mut self, addr: u32, x: u32, y: u32, format: PixelFormat) -> usize {
|
pub fn read_pixel_index(&mut self, addr: u32, x: u32, y: u32, format: PixelFormat) -> usize {
|
||||||
match format {
|
match format {
|
||||||
|
|
Reference in a new issue