From fde531e7c44ea917f745a9f800178fbe83fa19b5 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 22 Nov 2021 19:44:48 -0500 Subject: more refactor; draw samples grid and cursor; gen load fixes --- source/file.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/file.cpp') diff --git a/source/file.cpp b/source/file.cpp index dfd9148..a5ef1d8 100644 --- a/source/file.cpp +++ b/source/file.cpp @@ -26,6 +26,8 @@ #include #include +#include + extern TextEditor editor; extern void log(const std::string& str); @@ -133,8 +135,8 @@ void fileRenderMenu() ImGui::Separator(); if (ImGui::MenuItem("Quit")) { - extern bool done; - done = true; + SDL_Event quitEvent (SDL_QUIT); + SDL_PushEvent(&quitEvent); } ImGui::EndMenu(); -- cgit v1.2.3