diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-12-25 16:05:55 +0100 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-12-25 16:05:55 +0100 |
| commit | 07c7e35bff70991fc6c8bc34419da439f86fac4d (patch) | |
| tree | cfb01aecb761934ade54e749725057b8dad3c15d | |
| parent | 9550924042ced02c94ddc2af501f135a9f31d492 (diff) | |
Minor changes
| -rw-r--r-- | src/main.c | 2 | ||||
| -rw-r--r-- | src/screen.c | 2 | ||||
| -rw-r--r-- | src/screen.h | 1 |
3 files changed, 3 insertions, 2 deletions
@@ -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(); |
