mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-10 23:31:24 +00:00
Fix sprites on first line of display.
This commit is contained in:
parent
f3c2c0ffa9
commit
564ee1a5cb
@ -237,17 +237,18 @@ void TMS9918<personality>::run_for(const HalfCycles cycles) {
|
||||
const int first_window = from_internal<personality, clock>(this->fetch_pointer_.column); \
|
||||
const int final_window = from_internal<personality, clock>(end_column); \
|
||||
if(first_window == final_window) break; \
|
||||
const auto y = uint8_t( \
|
||||
this->fetch_line_buffer_->vertical_state == VerticalState::Prefetch ? \
|
||||
offset - 1 : (this->fetch_pointer_.row + offset)); \
|
||||
if(final_window != clock_rate<personality, clock>()) { \
|
||||
function<true>( \
|
||||
(this->fetch_pointer_.row + offset) & 0xff, \
|
||||
first_window, final_window); \
|
||||
function<true>(y, first_window, final_window); \
|
||||
} else { \
|
||||
function<false>( \
|
||||
(this->fetch_pointer_.row + offset) & 0xff, \
|
||||
first_window, final_window); \
|
||||
function<false>(y, first_window, final_window); \
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
|
||||
if constexpr (is_yamaha_vdp(personality)) {
|
||||
fetch(this->template fetch_yamaha, Clock::Internal, Storage<personality>::vertical_offset_);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user