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

Factor out sizing/placement, and convert into portable code.

This commit is contained in:
Thomas Harte
2026-02-06 16:48:07 -05:00
parent 93858dfae4
commit 51bf98f574
5 changed files with 89 additions and 42 deletions
+7
View File
@@ -422,6 +422,13 @@ void ScanTarget::update(const int output_width, const int output_height) {
GL_NEAREST,
true
);
const auto framing = aspect_ratio_transformation(
BufferingScanTarget::modals(),
float(output_buffer_width) / float(output_buffer_height)
);
(void)framing;
// TODO: apply framing to the line_output_shader_ and the scan_output_shader_.
}
// Do S-Video or composite line decoding.