diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-12-26 17:51:39 +0100 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-12-26 17:51:39 +0100 |
| commit | 5eadac72916ce9d53ffdc3f908a6e414858fe7e0 (patch) | |
| tree | 4c94efaa376280b44c510bad96eee41c43fc6c3a /src/screen.c | |
| parent | 24aadae14da23e852285d4d726148d260edc147d (diff) | |
Cleaning repository
Diffstat (limited to 'src/screen.c')
| -rw-r--r-- | src/screen.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/screen.c b/src/screen.c index a445bd8..305a40f 100644 --- a/src/screen.c +++ b/src/screen.c @@ -14,7 +14,7 @@ void ScreenInit(int width, int height){ ScreenClear(); SetTraceLogLevel(LOG_ERROR); // Disable anoying raylib logs - InitWindow(width, height, "Chip-8 Emulator"); + InitWindow(width, height, "Chip-8 Emulator by Loïc Guégan"); } void ScreenClear() { @@ -26,7 +26,6 @@ void ScreenClear() { void ScreenUpdate(){ BeginDrawing(); ClearBackground(RAYWHITE); - // DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY); for(int x=0;x<64;x++){ for(int y=0;y<32;y++){ if(Screen.pixels[x+y*64] == 0) @@ -56,13 +55,6 @@ char ScreenPixelApply(int x, int y, unsigned char state){ return flag; } -void ScreenPixelFlip(int x, int y){ - if(Screen.pixels[x+y*64]==0) - Screen.pixels[x+y*64]=1; - else - Screen.pixels[x+y*64]=0; -} - void ScreenWH(int *width, int *height){ *width=64; *height=32; |
