mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Merge pull request #572 from TomHarte/TallModeSprites
Fixes sprite list termination in 224- and 240-line modes.
This commit is contained in:
commit
278585fd94
@ -202,10 +202,7 @@ void TMS9918::run_for(const HalfCycles cycles) {
|
||||
if(mode2_enable_ && mode1_enable_) mode_timing_.pixel_lines = 224;
|
||||
if(mode2_enable_ && mode3_enable_) mode_timing_.pixel_lines = 240;
|
||||
|
||||
mode_timing_.sprite_terminator = 0xd0;
|
||||
if(mode_timing_.pixel_lines != 192) {
|
||||
mode_timing_.sprite_terminator = 0xf0;
|
||||
}
|
||||
mode_timing_.allow_sprite_terminator = mode_timing_.pixel_lines == 192;
|
||||
mode_timing_.first_vsync_line = (mode_timing_.total_lines + mode_timing_.pixel_lines) >> 1;
|
||||
|
||||
mode_timing_.end_of_frame_interrupt_position.row = mode_timing_.pixel_lines + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user