1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Made an attempt at NTSC colours. Hard coded in RGB, not composite. Short cuts, tsk.

This commit is contained in:
Thomas Harte
2015-07-27 19:04:03 -04:00
parent 662e7942ac
commit 01109d441b
4 changed files with 33 additions and 14 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ CRT::CRT(int cycles_per_line, int height_of_display, int number_of_buffers, ...)
// width should be 1.0 / _height_of_display, rotated to match the direction
float angle = atan2f(scanSpeedYfl, scanSpeedXfl);
float halfLineWidth = (float)_height_of_display * 1.9f;
float halfLineWidth = (float)_height_of_display * 2.0f;
_widths[0][0] = (sinf(angle) / halfLineWidth) * UINT32_MAX;
_widths[0][1] = (cosf(angle) / halfLineWidth) * UINT32_MAX;