1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-25 11:17:26 +00:00

Eliminate memset from C++ files.

This commit is contained in:
Thomas Harte
2025-12-06 10:55:32 -06:00
parent 171b890f0d
commit 6ac6157d06
14 changed files with 38 additions and 24 deletions
@@ -20,6 +20,7 @@
#include "Storage.hpp"
#include "YamahaCommands.hpp"
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdint>
+1 -1
View File
@@ -42,7 +42,7 @@ void Base<personality>::draw_sprites(
int sprite_buffer[256];
int sprite_collision = 0;
memset(&sprite_buffer[start], 0, size_t(end - start)*sizeof(sprite_buffer[0]));
std::fill(&sprite_buffer[start], &sprite_buffer[end], 0);
if constexpr (mode == SpriteMode::MasterSystem) {
// Draw all sprites into the sprite buffer.