From 2adf3d353ee29da3993e6ae7ba0a2b685af416b2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 12 Nov 2018 20:20:09 -0500 Subject: [PATCH] Subtracts retrace periods from output scale. --- .../xcshareddata/xcschemes/Clock Signal.xcscheme | 2 +- Outputs/CRT/CRT.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme b/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme index 782b17c09..f9049689f 100644 --- a/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme +++ b/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme @@ -68,7 +68,7 @@ > 3)); // Figure out the divisor necessary to get the horizontal flywheel into a 16-bit range. - const int real_clock_scan_period = multiplied_cycles_per_line * height_of_display; + const int real_clock_scan_period = vertical_flywheel_->get_scan_period(); vertical_flywheel_output_divider_ = (real_clock_scan_period + 65534) / 65535; // Communicate relevant fields to the scan target. - scan_target_modals_.output_scale.x = uint16_t(time_multiplier_ * cycles_per_line); - scan_target_modals_.output_scale.y = uint16_t((multiplied_cycles_per_line * height_of_display) / vertical_flywheel_output_divider_); + scan_target_modals_.output_scale.x = uint16_t(horizontal_flywheel_->get_scan_period()); + scan_target_modals_.output_scale.y = uint16_t(real_clock_scan_period / vertical_flywheel_output_divider_); scan_target_modals_.expected_vertical_lines = height_of_display; scan_target_modals_.composite_colour_space = colour_space; scan_target_->set_modals(scan_target_modals_);