aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
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;