diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/include/engine/core/platform.h | 2 | ||||
| -rw-r--r-- | src/core/src/loop.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/include/engine/core/platform.h b/src/core/include/engine/core/platform.h index 2e74fbe..9dc9a8b 100644 --- a/src/core/include/engine/core/platform.h +++ b/src/core/include/engine/core/platform.h @@ -17,7 +17,7 @@ */ typedef struct Platform { - Window window; + Window* window; bool quit; u64 frame; diff --git a/src/core/src/loop.c b/src/core/src/loop.c index f29ef25..642f771 100644 --- a/src/core/src/loop.c +++ b/src/core/src/loop.c @@ -85,7 +85,7 @@ Platform* engine_init(const char* windowtitle, i32 windowWidth, i32 windowHeight v2_i32 windowsize = (v2_i32){.x = windowWidth, .y = windowHeight}; Platform* p = (Platform*)malloc(sizeof(Platform)); - Window w = (Window)malloc(sizeof(Window)); + Window* w = (Window*)malloc(sizeof(Window)); /* initialize resources */ Resources* resources = malloc(sizeof(Resources)); @@ -395,7 +395,7 @@ i32 engine_run(Platform* p, StateType initial_state, void* state_arg) { if (now - last_fps_measurement > 1.000) { last_fps_measurement = now; - //printf("\n FPS: %.1f \t ticks: %lu", (double)ticks / now, ticks); + printf("\n FPS: %.1f \t ticks: %lu", (double)ticks / now, ticks); } glfwPollEvents(); |
