mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-30 04:50:08 +00:00
Fixed: colour_cycle_numerator_ doesn't need to be multiplied by the time multiplier because it'll get that for free from the calculation of next_run_length.
This commit is contained in:
parent
c746a3711f
commit
c84004bfa3
@ -31,7 +31,7 @@ void CRT::set_new_timing(unsigned int cycles_per_line, unsigned int height_of_di
|
|||||||
time_multiplier_ = IntermediateBufferWidth / cycles_per_line;
|
time_multiplier_ = IntermediateBufferWidth / cycles_per_line;
|
||||||
phase_denominator_ = cycles_per_line * colour_cycle_denominator;
|
phase_denominator_ = cycles_per_line * colour_cycle_denominator;
|
||||||
phase_numerator_ = 0;
|
phase_numerator_ = 0;
|
||||||
colour_cycle_numerator_ = colour_cycle_numerator * time_multiplier_;
|
colour_cycle_numerator_ = colour_cycle_numerator;
|
||||||
phase_alternates_ = should_alternate;
|
phase_alternates_ = should_alternate;
|
||||||
is_alernate_line_ &= phase_alternates_;
|
is_alernate_line_ &= phase_alternates_;
|
||||||
unsigned int multiplied_cycles_per_line = cycles_per_line * time_multiplier_;
|
unsigned int multiplied_cycles_per_line = cycles_per_line * time_multiplier_;
|
||||||
|
Loading…
Reference in New Issue
Block a user