aboutsummaryrefslogtreecommitdiffstats
path: root/source/file.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2021-11-22 19:44:48 -0500
committerClyne Sullivan <clyne@bitgloo.com>2021-11-22 19:44:48 -0500
commitfde531e7c44ea917f745a9f800178fbe83fa19b5 (patch)
tree7b305c0bb27bf0fd30f9f0feeb7ae6dadbc8d1ae /source/file.cpp
parentc76ba69fc933a86e526855b097907a728e24568b (diff)
more refactor; draw samples grid and cursor; gen load fixes
Diffstat (limited to 'source/file.cpp')
-rw-r--r--source/file.cpp6
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();