Browse Source

Fix CLS bug

Austin Morlan 9 months ago
parent
commit
084f2e9a9c
Signed by: Austin Morlan <mail@austinmorlan.com> GPG Key ID: FD6B27654AF5E348
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Source/Chip8.cpp

+ 1
- 1
Source/Chip8.cpp View File

@@ -162,7 +162,7 @@ void Chip8::OP_NULL()
162 162
 
163 163
 void Chip8::OP_00E0()
164 164
 {
165
-	memset(video, 0, VIDEO_HEIGHT * VIDEO_WIDTH);
165
+	memset(video, 0, sizeof(video));
166 166
 }
167 167
 
168 168
 void Chip8::OP_00EE()

Loading…
Cancel
Save