From 2432a3b4d746e89e3a4c15b7b9f19fc50fc9ac03 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 29 Jan 2017 14:00:01 -0500 Subject: [PATCH] =?UTF-8?q?Fixed=20condition=20=E2=80=94=20>=3D=20is=20sma?= =?UTF-8?q?rter.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Machines/Atari2600/TIA.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Machines/Atari2600/TIA.cpp b/Machines/Atari2600/TIA.cpp index ad0db590c..9149fc867 100644 --- a/Machines/Atari2600/TIA.cpp +++ b/Machines/Atari2600/TIA.cpp @@ -18,7 +18,6 @@ namespace { TIA::TIA() : horizontal_counter_(0) { -/* crt_.reset(new Outputs::CRT::CRT(228, 1, 263, Outputs::CRT::ColourSpace::YIQ, 228, 1, false, 1)); crt_->set_output_device(Outputs::CRT::Television); @@ -33,7 +32,7 @@ TIA::TIA() : "float phaseOffset = 6.283185308 * float(iPhase) / 13.0 + 5.074880441076923;" "return mix(float(y) / 14.0, step(1, iPhase) * cos(phase + phaseOffset), amplitude);" "}"); - speaker_->set_input_rate((float)(get_clock_rate() / 38.0));*/ +/* speaker_->set_input_rate((float)(get_clock_rate() / 38.0));*/ } TIA::~TIA() @@ -80,7 +79,7 @@ void TIA::run_for_cycles(int number_of_cycles) } // output full lines for as long as possible - while(number_of_cycles > cycles_per_line) + while(number_of_cycles >= cycles_per_line) { output_line(); number_of_cycles -= cycles_per_line;