mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-29 20:35:13 +01:00
use the offest field of bgofs rather than the value directly
This commit is contained in:
parent
c584c29fd6
commit
655bd67855
1 changed files with 2 additions and 2 deletions
|
@ -155,10 +155,10 @@ class PPU
|
|||
|
||||
screen_base = 0x800_u32 * bgcnt.screen_base_block
|
||||
character_base = bgcnt.character_base_block.to_u32 * 0x4000
|
||||
effective_row = (@vcount.to_u32 + bgvofs.value) & th
|
||||
effective_row = (@vcount.to_u32 + bgvofs.offset) & th
|
||||
ty = effective_row >> 3
|
||||
240.times do |col|
|
||||
effective_col = (col + bghofs.value) & tw
|
||||
effective_col = (col + bghofs.offset) & tw
|
||||
tx = effective_col >> 3
|
||||
|
||||
se_idx = se_index(tx, ty, bgcnt.screen_size)
|
||||
|
|
Loading…
Add table
Reference in a new issue