1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-02 20:30:00 +00:00

Ensures extra_border_length always has a defined value.

This commit is contained in:
Thomas Harte 2020-11-27 10:31:04 -05:00 committed by GitHub
parent af667c718e
commit 310282b7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,6 +306,9 @@ void Video::output_row(int row, int start, int end) {
case GraphicsMode::SuperHighRes:
extra_border_length = (line_control_ & 0x80) ? 4 : 2;
break;
default: // Unreachable.
extra_border_length = 0;
break;
}
for(int c = 0; c < extra_border_length; c++) {
next_pixel_[c] = border_colour_;