Compare commits

...

2 Commits

Author SHA1 Message Date
Sven Balzer
73777e83ab respect should_exit on linux as well 2025-12-06 18:59:07 +01:00
Sven Balzer
793b69d9d9 Fix using a c++23 extension with labels at the end of a block and fix writable strings warnings. 2025-12-06 17:02:54 +01:00
2 changed files with 5 additions and 5 deletions

View File

@ -452,7 +452,7 @@ int main(int, char**)
init();
// Main loop
while (!glfwWindowShouldClose(window))
while (!glfwWindowShouldClose(window) && !should_exit)
{
// Poll and handle events (inputs, window resize, etc.)
// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs.

View File

@ -69,8 +69,8 @@ void init(){
year = get_current_year();
}
static char* savefile_path = "./calendar";
static char* wiki_url = "https://gitea.ammerhai.com/Ammerhai/work-calendar/wiki";
static const char *savefile_path = "./calendar";
static const char *wiki_url = "https://gitea.ammerhai.com/Ammerhai/work-calendar/wiki";
static const char *month_names[] = {"Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"};
@ -426,7 +426,7 @@ void per_frame(){
};
num_categorized_days++;
}
color_changed:
color_changed:;
}
ImGui::EndTable();