From 310282b7c9c92bdcca7416b2574e43ab501e6993 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 27 Nov 2020 10:31:04 -0500 Subject: [PATCH] Ensures extra_border_length always has a defined value. --- Machines/Apple/AppleIIgs/Video.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Machines/Apple/AppleIIgs/Video.cpp b/Machines/Apple/AppleIIgs/Video.cpp index b95187aec..6575afb3b 100644 --- a/Machines/Apple/AppleIIgs/Video.cpp +++ b/Machines/Apple/AppleIIgs/Video.cpp @@ -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_;