From 1d07b8238ca582b8c6cc1896b3a6891ecf52f4c5 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 12 Dec 2024 17:36:44 -0500 Subject: [PATCH] Add a crop rectangle. --- Machines/Commodore/Plus4/Video.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Machines/Commodore/Plus4/Video.hpp b/Machines/Commodore/Plus4/Video.hpp index 40eed84f6..bc3035b2f 100644 --- a/Machines/Commodore/Plus4/Video.hpp +++ b/Machines/Commodore/Plus4/Video.hpp @@ -19,7 +19,11 @@ struct Video { public: Video(const Commodore::Plus4::Pager &pager) : crt_(465, 1, Outputs::Display::Type::PAL50, Outputs::Display::InputDataType::Luminance8Phase8), - pager_(pager) {} + pager_(pager) + { + // TODO: perfect crop. + crt_.set_visible_area(Outputs::Display::Rect(0.075f, 0.065f, 0.85f, 0.85f)); + } template void write(const uint8_t value) {