diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2023-10-21 21:56:01 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2023-10-21 21:57:47 +0530 |
commit | 31e3a562fe4a44f4367e4398745e48b6d5f688ba (patch) | |
tree | a77bf58f90b69b177930907d8d42c6504487d63a /src/main.cpp | |
parent | 6f5020bb6c198e475982e207179605b314b1afbe (diff) |
use bits for graphics buffer
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index b5f12df..0e60faa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,7 +24,7 @@ int main(int argc, char** argv) { Chip8 chip8; chip8.LoadROM(filename); - int videoPitch = sizeof(chip8.video[0]) * VIDEO_WIDTH; + int count = 0; bool quit = false; while (!quit) { @@ -33,7 +33,7 @@ int main(int argc, char** argv) { usleep(cycleDelay * 1000); chip8.Cycle(); - platform.Update(chip8.video, videoPitch); + platform.Update(chip8.video, videoScale); } return 0; |