summaryrefslogtreecommitdiff
path: root/lib/nes/sys/ppu.hh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nes/sys/ppu.hh')
-rw-r--r--lib/nes/sys/ppu.hh3
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] }
{
}