aboutsummaryrefslogtreecommitdiffstats
path: root/source/gui.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2021-10-30 10:08:11 -0400
committerClyne Sullivan <clyne@bitgloo.com>2021-10-30 10:08:11 -0400
commit12440b673f55eb4bfac5f553923de7ce9508a2a7 (patch)
tree3fdcace26104dd2b116774c385a23e724d245571 /source/gui.cpp
parent41ae9b3b1b6a75d12c39f1186e6d6e644f834c6f (diff)
new file on startup; styling; bug fixes
Diffstat (limited to 'source/gui.cpp')
-rw-r--r--source/gui.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/gui.cpp b/source/gui.cpp
index 47291c6..2ecf8ee 100644
--- a/source/gui.cpp
+++ b/source/gui.cpp
@@ -57,6 +57,11 @@ bool guiInitialize()
ImGui_ImplSDL2_InitForOpenGL(window, gl_context);
ImGui_ImplOpenGL2_Init();
+ ImGuiStyle& style = ImGui::GetStyle();
+ style.WindowRounding = 5;
+ style.FrameRounding = 3;
+ style.ScrollbarRounding = 1;
+
return true;
}
@@ -71,7 +76,6 @@ void guiRender(void (*func)())
void guiHandleEvents(bool& done)
{
- SDL_Event event;
for (SDL_Event event; SDL_PollEvent(&event);) {
ImGui_ImplSDL2_ProcessEvent(&event);
if (event.type == SDL_QUIT)