summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
-rw-r--r--src/screen.c2
-rw-r--r--src/screen.h1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index b870fab..00d6be2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
while (!WindowShouldClose()){
VCPUFetch();
VCPUDecode();
- VCPUExecute();
+ VCPUExecute();
ScreenUpdate();
}
diff --git a/src/screen.c b/src/screen.c
index fa4a9c4..c6d5510 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -15,7 +15,7 @@ void ScreenInit(int width, int height){
SetTraceLogLevel(LOG_ERROR); // Disable anoying raylib logs
InitWindow(width, height, "Chip-8 Emulator");
- SetTargetFPS(200); // Set game to run at 60 frames-per-second
+ SetTargetFPS(30); // Set game to run at 60 frames-per-second
}
void ScreenClear() {
diff --git a/src/screen.h b/src/screen.h
index 7578552..671285a 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -16,6 +16,7 @@ typedef struct SCREEN_DATA {
void ScreenInit(int width, int height);
void ScreenClear();
char ScreenPixelApply(int x, int y, unsigned char state);
+void ScreenPixelFlip(int x, int y);
void ScreenWH(int *width, int *height);
void ScreenUpdate();
void ScreenClose();