1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-29 16:55:59 +00:00

Ensure Yamaha-style refresh is used in all modes.

This commit is contained in:
Thomas Harte 2023-01-23 22:39:34 -05:00
parent 7293f9dc10
commit 15fbf4cb7f

View File

@ -192,12 +192,8 @@ template <Personality personality> struct Storage<personality, std::enable_if_t<
};
const Event *next_event_ = nullptr;
void begin_line([[maybe_unused]] ScreenMode mode, bool is_refresh, [[maybe_unused]] bool sprites_enabled) {
// TODO: remove this check. It's temporary, while the Yamaha is still using the TMS fetchers.
if(mode < ScreenMode::YamahaText80) {
return;
}
assert(next_event_ == nullptr || next_event_->offset == 1368);
// TODO: remove YamahaText80 check. It's temporary, while the Yamaha is still using the TMS fetchers.
assert(mode < ScreenMode::YamahaText80 || next_event_ == nullptr || next_event_->offset == 1368);
if(is_refresh) {
next_event_ = refresh_events;