From 3e846f89a1279e67e2bffd280f86357f3355ede4 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 5 Apr 2018 21:25:19 -0400 Subject: [PATCH] Introduces different clipping zones for NTSC and PAL output. --- Components/6560/6560.hpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Components/6560/6560.hpp b/Components/6560/6560.hpp index 621c885a2..ab18bb6b3 100644 --- a/Components/6560/6560.hpp +++ b/Components/6560/6560.hpp @@ -145,16 +145,15 @@ template class MOS6560 { } crt_->set_new_display_type(static_cast(timing_.cycles_per_line*4), display_type); - crt_->set_visible_area(Outputs::CRT::Rect(0.1f, 0.05f, 0.9f, 0.9f)); -// switch(output_mode) { -// case OutputMode::PAL: -// crt_->set_visible_area(crt_->get_rect_for_area(16, 237, 15*4, 55*4, 4.0f / 3.0f)); -// break; -// case OutputMode::NTSC: -// crt_->set_visible_area(crt_->get_rect_for_area(16, 237, 11*4, 55*4, 4.0f / 3.0f)); -// break; -// } + switch(output_mode) { + case OutputMode::PAL: + crt_->set_visible_area(Outputs::CRT::Rect(0.1f, 0.05f, 0.9f, 0.9f)); + break; + case OutputMode::NTSC: + crt_->set_visible_area(Outputs::CRT::Rect(0.05f, 0.05f, 0.9f, 0.9f)); + break; + } for(int c = 0; c < 16; c++) { uint8_t *colour = reinterpret_cast(&colours_[c]);