mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Fixed unused variable warning.
This commit is contained in:
parent
c2fc978983
commit
c712f7275d
1 changed files with 1 additions and 1 deletions
|
|
@ -3504,7 +3504,7 @@ void ImGui::NewFrame()
|
|||
NewFrameUpdateMovingWindow();
|
||||
NewFrameUpdateHoveredWindowAndCaptureFlags();
|
||||
|
||||
if (ImGuiWindow* modal_window = GetFrontMostModalRootWindow())
|
||||
if (GetFrontMostModalRootWindow() != NULL)
|
||||
g.ModalWindowDarkeningRatio = ImMin(g.ModalWindowDarkeningRatio + g.IO.DeltaTime * 6.0f, 1.0f);
|
||||
else
|
||||
g.ModalWindowDarkeningRatio = 0.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue