From c50ac8fa71441b1212586c498d44d854e5c29adb Mon Sep 17 00:00:00 2001 From: otavepto Date: Mon, 4 Mar 2024 02:59:35 +0200 Subject: [PATCH] some debug messages --- overlay_experimental/steam_overlay.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index dc152652..a152bfee 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -324,11 +324,12 @@ void Steam_Overlay::ShowOverlay(bool state) show_overlay = state; overlay_state_changed = true; + PRINT_DEBUG("Steam_Overlay::ShowOverlay %i\n", (int)state); + ImGuiIO &io = ImGui::GetIO(); - // this is very important, it doesn't just prevent input confusion between game's window - // and overlay's window, but internally it calls the necessary fuctions to properly update - // ImGui window size + // this is very important internally it calls the necessary fuctions + // to properly update ImGui window size on the next OverlayProc() call if (state) { // force draw the cursor, otherwise games like Truberbrook will not have an overlay cursor io.MouseDrawCursor = true; @@ -995,6 +996,7 @@ void Steam_Overlay::OverlayProc() // then disable frame rendering if (notifications.empty() && !show_overlay) { _renderer->HideOverlayInputs(true); + PRINT_DEBUG("Steam_Overlay::OverlayProc disabled frame processing since it won't show overlay and has 0 notifications\n"); } }