We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97e0bef commit c81eb0eCopy full SHA for c81eb0e
1 file changed
external/immapp/immapp/testing.h
@@ -68,7 +68,8 @@ inline void Capture(ImGuiTestContext* ctx, const std::string& path,
68
(opts.window.rfind("//", 0) == 0) ? opts.window : "//" + opts.window;
69
ctx->CaptureAddWindow(ref.c_str());
70
}
71
- ctx->CaptureSetFilename(path.c_str());
+ if (ctx->CaptureArgs != nullptr)
72
+ ImStrncpy(ctx->CaptureArgs->InOutputFile, path.c_str(), IM_ARRAYSIZE(ctx->CaptureArgs->InOutputFile));
73
ctx->CaptureScreenshot(opts.flags);
74
75
0 commit comments