mirror of
https://github.com/mattrberry/crab.git
synced 2024-11-16 19:49:30 +01:00
implement affine wrap
This commit is contained in:
parent
d5e05f0f88
commit
99ac277ca0
1 changed files with 2 additions and 1 deletions
|
@ -220,7 +220,8 @@ class PPU
|
|||
y = ((pc * col + pd * row) + dy) >> 8
|
||||
|
||||
if @bgcnt[bg].affine_wrap
|
||||
# puts "Wrap not supported yet (bg:#{bg})".colorize.fore(:red)
|
||||
x %= size_pixels
|
||||
y %= size_pixels
|
||||
end
|
||||
next unless 0 <= x < size_pixels && 0 <= y < size_pixels
|
||||
|
||||
|
|
Loading…
Reference in a new issue