1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Replaces manual retread of memcpy with standard memcpy.

This commit is contained in:
Thomas Harte 2017-12-05 18:21:34 -05:00
parent 6eedc99286
commit d4a53e82bb

View File

@ -111,9 +111,7 @@ void TMS9918::run_for(const HalfCycles cycles) {
// Pattern names are collected every third window starting from window 30.
const int pattern_names_end = (end - 30) / 3;
for(int column = start_column; column < pattern_names_end; ++column) {
pattern_names_[column] = ram_[row_base + column];
}
std::memcpy(&pattern_names_[start_column], &ram_[row_base + start_column], static_cast<size_t>(pattern_names_end - start_column));
// Patterns are collected every third window starting from window 32.
const int pattern_buffer_end = (end - 32) / 3;