Skip to content

Commit c81eb0e

Browse files
committed
immapp/testing.h: fix compil
1 parent 97e0bef commit c81eb0e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

external/immapp/immapp/testing.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ inline void Capture(ImGuiTestContext* ctx, const std::string& path,
6868
(opts.window.rfind("//", 0) == 0) ? opts.window : "//" + opts.window;
6969
ctx->CaptureAddWindow(ref.c_str());
7070
}
71-
ctx->CaptureSetFilename(path.c_str());
71+
if (ctx->CaptureArgs != nullptr)
72+
ImStrncpy(ctx->CaptureArgs->InOutputFile, path.c_str(), IM_ARRAYSIZE(ctx->CaptureArgs->InOutputFile));
7273
ctx->CaptureScreenshot(opts.flags);
7374
}
7475

0 commit comments

Comments
 (0)