Skip to content

Commit 3874001

Browse files
committed
Update Capture image when ImGui is not shown
1 parent 529b8aa commit 3874001

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

HDR10Capture2019/MLDX12App.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,6 @@ MLDX12App::ShowVideoCaptureWindow(void)
10741074
mVCState = VCS_PreInit;
10751075
mState = S_Init;
10761076
} else {
1077-
10781077
if (ImGui::Button("Flush Streams ##VCS")) {
10791078
mVCU.FlushStreams();
10801079
mVCU.ClearCapturedImageList();
@@ -1153,8 +1152,9 @@ MLDX12App::ShowVideoCaptureWindow(void)
11531152

11541153
ImGui::OpenPopup("WriteFlushPopup");
11551154
}
1156-
1155+
11571156
UpdateCaptureImg();
1157+
11581158
break;
11591159
case VCS_WaitRecordEnd:
11601160
{
@@ -1456,6 +1456,17 @@ MLDX12App::ImGuiCommands(void) {
14561456
ShowVideoCaptureWindow();
14571457
ShowImageFileRWWindow();
14581458
ShowSettingsWindow();
1459+
} else {
1460+
1461+
// キャプチャー画像を更新。
1462+
switch (mVCState) {
1463+
case VCS_CapturePreview:
1464+
case VCS_Recording:
1465+
UpdateCaptureImg();
1466+
break;
1467+
default:
1468+
break;
1469+
}
14591470
}
14601471

14611472
ImGui::Render();

0 commit comments

Comments
 (0)