1
0
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:
Thomas Harte 2018-10-24 19:56:42 -04:00 committed by GitHub
commit 278585fd94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;