Skip to content

Commit

Permalink
fix mismatched overlay mode check
Browse files Browse the repository at this point in the history
should allow to focus overlay in eoverlay_edit mode not in eoverlay_show mode
  • Loading branch information
megai2 committed Feb 24, 2020
1 parent 3c37a63 commit b06da9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d912pxy/d912pxy_extras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ void d912pxy_extras::DrawOverlay()
{
ImGUI_Render_Start();

ImGui::Begin(BUILD_VERSION_NAME, nullptr, (overlayShowMode == eoverlay_edit) * (ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoInputs));
ImGui::Begin(BUILD_VERSION_NAME, nullptr, (overlayShowMode != eoverlay_edit) * (ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoInputs));

if (bShowFps)
ImGui::Text("%.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate);
Expand Down

0 comments on commit b06da9a

Please sign in to comment.