1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-15 11:32:29 +00:00

Ensures the ZX Spectrum properly reports its display type.

This commit is contained in:
Thomas Harte 2021-04-25 21:16:22 -04:00
parent d403036d86
commit 700c505974
2 changed files with 10 additions and 0 deletions

View File

@ -390,6 +390,11 @@ template <Timing timing> class Video {
crt_.set_display_type(type);
}
/*! Gets the display type. */
Outputs::Display::DisplayType get_display_type() const {
return crt_.get_display_type();
}
private:
int time_into_frame_ = 0;
Outputs::CRT::CRT crt_;

View File

@ -224,6 +224,10 @@ template<Model model> class ConcreteMachine:
video_->set_display_type(display_type);
}
Outputs::Display::DisplayType get_display_type() const override {
return video_->get_display_type();
}
// MARK: - BusHandler.
forceinline HalfCycles perform_machine_cycle(const CPU::Z80::PartialMachineCycle &cycle) {
@ -643,6 +647,7 @@ template<Model model> class ConcreteMachine:
auto options = std::make_unique<Options>(Configurable::OptionsType::UserFriendly); // OptionsType is arbitrary, but not optional.
options->automatic_tape_motor_control = use_automatic_tape_motor_control_;
options->quickload = allow_fast_tape_hack_;
options->output = get_video_signal_configurable();
return options;
}