diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-04 19:59:47 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-04 19:59:47 +0100 |
| commit | 9c45e9c7df1efa5bc1c8e73b6eaef4726b828d3e (patch) | |
| tree | 4be985efa8e697fd6ef5838eec69c32c40c5d4a5 /lib/nes/sys/ppu.hh | |
| parent | e791ac9a46095e0241181da89c35a7c702982c21 (diff) | |
add span type
Diffstat (limited to 'lib/nes/sys/ppu.hh')
| -rw-r--r-- | lib/nes/sys/ppu.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/nes/sys/ppu.hh b/lib/nes/sys/ppu.hh index 013546a..7774669 100644 --- a/lib/nes/sys/ppu.hh +++ b/lib/nes/sys/ppu.hh @@ -2,6 +2,7 @@ #include "nes/sys/types/cycle-count.hh" #include "nes/common/types.hh" +#include "nes/common/span.hh" namespace nes { @@ -96,7 +97,7 @@ namespace nes::sys explicit sprite() = default; - explicit sprite(u8 const* data) + explicit sprite(span<u8 const, 4> const data) : value{ data[0], data[1], data[2], data[3] } { } |
