Codechange: Use std::byte for generic buffers.

This commit is contained in:
frosch
2025-05-03 17:41:51 +02:00
committed by frosch
parent 02082a0211
commit 518a34c286
4 changed files with 5 additions and 4 deletions

View File

@@ -73,8 +73,9 @@ Sprite *Blitter_8bppSimple::Encode(SpriteType, const SpriteLoader::SpriteCollect
dest_sprite->y_offs = root_sprite.y_offs;
/* Copy over only the 'remap' channel, as that is what we care about in 8bpp */
uint8_t *dst = reinterpret_cast<uint8_t *>(dest_sprite->data);
for (int i = 0; i < root_sprite.height * root_sprite.width; i++) {
dest_sprite->data[i] = root_sprite.data[i].m;
dst[i] = root_sprite.data[i].m;
}
return dest_sprite;