diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2021-11-22 19:44:48 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2021-11-22 19:44:48 -0500 |
commit | fde531e7c44ea917f745a9f800178fbe83fa19b5 (patch) | |
tree | 7b305c0bb27bf0fd30f9f0feeb7ae6dadbc8d1ae /source/file.cpp | |
parent | c76ba69fc933a86e526855b097907a728e24568b (diff) |
more refactor; draw samples grid and cursor; gen load fixes
Diffstat (limited to 'source/file.cpp')
-rw-r--r-- | source/file.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <string> #include <vector> +#include <SDL2/SDL.h> + 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(); |