mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-29 16:55:59 +00:00
Correct get_scaled_scan_status.
This commit is contained in:
parent
8608f0f89d
commit
71069bef0f
@ -89,9 +89,10 @@ class CGA {
|
|||||||
void set_scan_target(Outputs::Display::ScanTarget *scan_target) {
|
void set_scan_target(Outputs::Display::ScanTarget *scan_target) {
|
||||||
outputter_.crt.set_scan_target(scan_target);
|
outputter_.crt.set_scan_target(scan_target);
|
||||||
}
|
}
|
||||||
|
|
||||||
Outputs::Display::ScanStatus get_scaled_scan_status() const {
|
Outputs::Display::ScanStatus get_scaled_scan_status() const {
|
||||||
return outputter_.crt.get_scaled_scan_status() * float(outputter_.clock_divider) / (3.0f * 4.0f);
|
// The CRT is always handed data at the full CGA pixel clock rate, so just
|
||||||
|
// divide by 12 to get back to the rate that run_for is being called at.
|
||||||
|
return outputter_.crt.get_scaled_scan_status() / 12.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user