1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-27 18:55:48 +00:00

Fix one: vertical scan speed was failing to allow for the number of cycles in a line.

This commit is contained in:
Thomas Harte 2015-07-22 18:56:35 -04:00
parent 963cb2f6fb
commit b503e13380

View File

@ -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;