mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-28 13:30:55 +00:00
Ensures extra_border_length always has a defined value.
This commit is contained in:
parent
af667c718e
commit
310282b7c9
@ -306,6 +306,9 @@ void Video::output_row(int row, int start, int end) {
|
|||||||
case GraphicsMode::SuperHighRes:
|
case GraphicsMode::SuperHighRes:
|
||||||
extra_border_length = (line_control_ & 0x80) ? 4 : 2;
|
extra_border_length = (line_control_ & 0x80) ? 4 : 2;
|
||||||
break;
|
break;
|
||||||
|
default: // Unreachable.
|
||||||
|
extra_border_length = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
for(int c = 0; c < extra_border_length; c++) {
|
for(int c = 0; c < extra_border_length; c++) {
|
||||||
next_pixel_[c] = border_colour_;
|
next_pixel_[c] = border_colour_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user