From 32374444bae491299c38cfd5b52295f55798ecc2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 8 Nov 2020 17:04:04 -0500 Subject: [PATCH] Fixes text output window. --- Machines/Apple/AppleIIgs/Video.cpp | 2 +- Machines/Apple/AppleIIgs/Video.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Machines/Apple/AppleIIgs/Video.cpp b/Machines/Apple/AppleIIgs/Video.cpp index 07db9ef14..f228076ec 100644 --- a/Machines/Apple/AppleIIgs/Video.cpp +++ b/Machines/Apple/AppleIIgs/Video.cpp @@ -179,7 +179,7 @@ void VideoBase::output_row(int row, int start, int end) { if(next_pixel_) { uint16_t row_address = get_row_address(row); for(int c = start; c < end_of_period; c++) { - const uint8_t source = ram_[row_address + c]; + const uint8_t source = ram_[row_address + c - start_of_pixels]; const int character = source & character_zones_[source >> 6].address_mask; const uint8_t xor_mask = character_zones_[source >> 6].xor_mask; const std::size_t character_address = size_t(character << 3) + (row & 7); diff --git a/Machines/Apple/AppleIIgs/Video.hpp b/Machines/Apple/AppleIIgs/Video.hpp index 10c02fb90..52cda9611 100644 --- a/Machines/Apple/AppleIIgs/Video.hpp +++ b/Machines/Apple/AppleIIgs/Video.hpp @@ -67,7 +67,7 @@ class VideoBase: public Apple::II::VideoSwitches { // The modal colours. uint16_t border_colour_ = 0; - uint16_t text_colour_ = 0xfff; + uint16_t text_colour_ = 0xffff; uint16_t background_colour_ = 0; // Current pixel output buffer.