1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +00:00

Adds one-before-the-graphics as a line for video collection.

Thereby corrects sprites on line 0.
This commit is contained in:
Thomas Harte 2017-12-12 21:35:33 -05:00
parent da57df55e8
commit b0616ee10c

View File

@ -168,7 +168,7 @@ void TMS9918::run_for(const HalfCycles cycles) {
// ------------------------------
// Perform video memory accesses.
// ------------------------------
if(row_ < 192 && !blank_screen_) {
if(((row_ < 192) || (row_ == frame_lines_-1)) && !blank_screen_) {
const int access_slot = column_ >> 1; // There are only 171 available memory accesses per line.
switch(line_mode_) {
case LineMode::Text: