From 903c77019f85520b5282a881f20c4950730bc3f7 Mon Sep 17 00:00:00 2001 From: shweet Date: Fri, 15 Aug 2025 12:49:45 -0400 Subject: [PATCH] Exit confirmation change --- src/ffmpeg.h | 12 ++++++------ src/imgui.cpp | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ffmpeg.h b/src/ffmpeg.h index 007943c..2747a57 100644 --- a/src/ffmpeg.h +++ b/src/ffmpeg.h @@ -6,25 +6,25 @@ #define FFMPEG_POPEN_ERROR "popen() (for FFmpeg) failed!\n{}" static constexpr const char* FFMPEG_GIF_FORMAT = -"{0} -y " +"\"{0}\" -y " "-f rawvideo -pix_fmt rgba -s {1}x{2} -r {3} -i pipe:0 " "-lavfi \"split[s0][s1];" "[s0]palettegen=stats_mode=full[p];" "[s1][p]paletteuse=dither=floyd_steinberg\" " -"-loop 0 {4}"; +"-loop 0 \"{4}\""; static constexpr const char* FFMPEG_WEBM_FORMAT = -"{0} -y " +"\"{0}\" -y " "-f rawvideo -pix_fmt rgba -s {1}x{2} -r {3} -i pipe:0 " "-c:v libvpx-vp9 -crf 30 -b:v 0 -pix_fmt yuva420p -row-mt 1 -threads 0 -speed 2 " -"-auto-alt-ref 0 -an {4}"; +"-auto-alt-ref 0 -an \"{4}\""; static constexpr const char* FFMPEG_MP4_FORMAT = -"{0} -y " +"\"{0}\" -y " "-f rawvideo -pix_fmt rgba -s {1}x{2} -r {3} -i pipe:0 " "-vf \"format=yuv420p,scale=trunc(iw/2)*2:trunc(ih/2)*2\" " "-c:v libx265 -crf 20 -preset slow " -"-tag:v hvc1 -movflags +faststart -an {4}"; +"-tag:v hvc1 -movflags +faststart -an \"{4}\""; bool ffmpeg_render diff --git a/src/imgui.cpp b/src/imgui.cpp index 7be2ab6..2993238 100644 --- a/src/imgui.cpp +++ b/src/imgui.cpp @@ -1251,6 +1251,8 @@ static void _imgui_taskbar(Imgui* self) if (_imgui_option_popup(IMGUI_EXIT_CONFIRMATION, self)) self->isQuit = true; + else + self->isTryQuit = false; _imgui_selectable(IMGUI_WIZARD.copy({}), self);