From b503e133805d3227bcd01ac2cee48767c0454898 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 22 Jul 2015 18:56:35 -0400 Subject: [PATCH] Fix one: vertical scan speed was failing to allow for the number of cycles in a line. --- Outputs/CRT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Outputs/CRT.cpp b/Outputs/CRT.cpp index 53cf5a6dd..864637ca8 100644 --- a/Outputs/CRT.cpp +++ b/Outputs/CRT.cpp @@ -32,7 +32,7 @@ CRT::CRT(int cycles_per_line, int height_of_display, int number_of_buffers, ...) _vertical_retrace_time = scanlinesVerticalRetraceTime * cycles_per_line; _scanSpeed.x = 1.0f / (float)cycles_per_line; - _scanSpeed.y = 1.0f / (float)height_of_display; + _scanSpeed.y = 1.0f / (float)(height_of_display * cycles_per_line); _retraceSpeed.x = 1.0f / (float)_horizontal_retrace_time; _retraceSpeed.y = 1.0f / (float)_vertical_retrace_time;