1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-03-14 10:16:29 +00:00

Eliminate colour hack.

This commit is contained in:
Thomas Harte
2026-02-07 21:59:24 -05:00
parent 92302fd0b5
commit 4bc3a3b189
2 changed files with 5 additions and 15 deletions

View File

@@ -471,17 +471,7 @@ private:
const int colour_burst_start = std::max(first_sync_column + sync_length + 1, column_);
const int colour_burst_end = std::min(first_sync_column + sync_length + 4, ending_column);
if(colour_burst_end > colour_burst_start) {
// UGLY HACK AHOY!
// The OpenGL scan target introduces a phase error of 1/8th of a wave. The Metal one does not.
// Supply the real phase value if this is an Apple build.
// TODO: eliminate UGLY HACK.
#if defined(__APPLE__) && !defined(IGNORE_APPLE)
static constexpr uint8_t phase = 224;
#else
static constexpr uint8_t phase = 192;
#endif
crt_.output_colour_burst((colour_burst_end - colour_burst_start) * 14, phase);
crt_.output_colour_burst((colour_burst_end - colour_burst_start) * 14, 224);
}
second_blank_start = std::max(first_sync_column + sync_length + 3, column_);

View File

@@ -74,11 +74,11 @@
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;/Users/thomasharte/Library/Mobile Documents/com~apple~CloudDocs/Soft/Apple II/Total Replay v5.2.hdv&quot;"
isEnabled = "NO">
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;/Users/thomasharte/Library/Mobile Documents/com~apple~CloudDocs/Soft/Atari 2600/Pitfall!.a26&quot;"
isEnabled = "YES">
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "&quot;/Users/thomasharte/Library/Mobile Documents/com~apple~CloudDocs/Soft/Atari 2600/Solaris.a26&quot;"
@@ -93,12 +93,12 @@
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--new=enterprise"
argument = "--new=vic20"
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "--display=svideo"
isEnabled = "YES">
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "--display=CompositeColour"