1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Resolves attempt to output graphics on the line one before the display.

This commit is contained in:
Thomas Harte 2018-10-16 21:02:31 -04:00
parent 5dfe7d8596
commit 0f7bf6d6c6

View File

@ -307,7 +307,7 @@ void TMS9918::run_for(const HalfCycles cycles) {
}\
}
if(line_buffer.line_mode == LineMode::Refresh) {
if(line_buffer.line_mode == LineMode::Refresh || read_pointer_.row > mode_timing_.pixel_lines) {
if(read_pointer_.row >= mode_timing_.first_vsync_line && read_pointer_.row < mode_timing_.first_vsync_line+4) {
// Vertical sync.
if(end_column == 342) {