From 0bf4fdc9af7f66e9bcf10de4a976ac2f6ab70aa7 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 29 Jul 2017 21:37:59 -0400 Subject: [PATCH] Simplified slightly. --- Outputs/CRT/CRT.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Outputs/CRT/CRT.cpp b/Outputs/CRT/CRT.cpp index c111c2e0f..2fdab779f 100644 --- a/Outputs/CRT/CRT.cpp +++ b/Outputs/CRT/CRT.cpp @@ -308,7 +308,6 @@ void CRT::output_scan(const Scan *const scan) { cycles_of_sync_ += scan->number_of_cycles; if(this_is_sync && cycles_of_sync_ >= sync_capacitor_charge_threshold_) { - is_refusing_sync_ = true; unsigned int overshoot = std::min(cycles_of_sync_ - sync_capacitor_charge_threshold_, number_of_cycles); if(overshoot) { number_of_cycles -= overshoot; @@ -317,8 +316,7 @@ void CRT::output_scan(const Scan *const scan) { number_of_cycles = overshoot; } - cycles_of_sync_ = 0; - is_accumulating_sync_ = false; + is_refusing_sync_ = true; vsync_requested = true; } }