From 945f5e679cd604d03a6c50fd80e1498652c1d5f1 Mon Sep 17 00:00:00 2001 From: 0xmac Date: Thu, 5 Dec 2024 11:45:05 +0100 Subject: [PATCH] Moved SFML vars to main file --- src/ls7emulator.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ls7emulator.c b/src/ls7emulator.c index d93c592..f66e13a 100644 --- a/src/ls7emulator.c +++ b/src/ls7emulator.c @@ -8,7 +8,6 @@ #include #include -#include "ls7emulator.h" #include "config.h" #include "events.c" #include "cpu.c" @@ -17,6 +16,10 @@ #include "keyboard.c" +sfVertexArray *renderArray; +sfRenderWindow *window; +sfRenderStates renderStates; + void openFile(const char *inputFile){ FILE *file = fopen(inputFile, "rb"); @@ -68,7 +71,7 @@ int main(int argc, char *argv[]){ sfTransform_scale(&renderStates.transform, 2, 2); resetSystem(); - + while (sfRenderWindow_isOpen(window)){ pollEvents(window);