mirror of
https://github.com/colby-swandale/waterfoul
synced 2024-11-17 07:48:37 +01:00
fixing some bugs in window draw
This commit is contained in:
parent
00eec41f53
commit
6ebe1f2678
1 changed files with 3 additions and 3 deletions
|
@ -156,7 +156,7 @@ module Waterfoul
|
|||
|
||||
0.upto(31) do |x|
|
||||
tile = 0
|
||||
if tiles == 0x8800
|
||||
if tiles_select == 0x8800
|
||||
tile = signed_value $mmu.read_byte(map_select + y_offset + x)
|
||||
tile += 128
|
||||
else
|
||||
|
@ -171,11 +171,11 @@ module Waterfoul
|
|||
byte_2 = $mmu.read_byte (tile_address + 1)
|
||||
|
||||
0.upto(7) do |pixelx|
|
||||
buffer_addr = line_pixel_offset + pixelx + wx
|
||||
buffer_addr = line_pixel_offset + pixelx + window_pos_x
|
||||
|
||||
next if buffer_addr < 0 || buffer_addr >= SCREEN_WIDTH
|
||||
|
||||
shift 0x1 << (7 - pixelx)
|
||||
shift = 0x1 << (7 - pixelx)
|
||||
|
||||
pixel = 0
|
||||
if (byte_1 & shift == shift) && (byte_2 & shift == shift)
|
||||
|
|
Loading…
Reference in a new issue