mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 13:14:01 +08:00
some debug messages
This commit is contained in:
parent
6a5fbf2b7d
commit
c50ac8fa71
@ -324,11 +324,12 @@ void Steam_Overlay::ShowOverlay(bool state)
|
|||||||
show_overlay = state;
|
show_overlay = state;
|
||||||
overlay_state_changed = true;
|
overlay_state_changed = true;
|
||||||
|
|
||||||
|
PRINT_DEBUG("Steam_Overlay::ShowOverlay %i\n", (int)state);
|
||||||
|
|
||||||
ImGuiIO &io = ImGui::GetIO();
|
ImGuiIO &io = ImGui::GetIO();
|
||||||
|
|
||||||
// this is very important, it doesn't just prevent input confusion between game's window
|
// this is very important internally it calls the necessary fuctions
|
||||||
// and overlay's window, but internally it calls the necessary fuctions to properly update
|
// to properly update ImGui window size on the next OverlayProc() call
|
||||||
// ImGui window size
|
|
||||||
if (state) {
|
if (state) {
|
||||||
// force draw the cursor, otherwise games like Truberbrook will not have an overlay cursor
|
// force draw the cursor, otherwise games like Truberbrook will not have an overlay cursor
|
||||||
io.MouseDrawCursor = true;
|
io.MouseDrawCursor = true;
|
||||||
@ -995,6 +996,7 @@ void Steam_Overlay::OverlayProc()
|
|||||||
// then disable frame rendering
|
// then disable frame rendering
|
||||||
if (notifications.empty() && !show_overlay) {
|
if (notifications.empty() && !show_overlay) {
|
||||||
_renderer->HideOverlayInputs(true);
|
_renderer->HideOverlayInputs(true);
|
||||||
|
PRINT_DEBUG("Steam_Overlay::OverlayProc disabled frame processing since it won't show overlay and has 0 notifications\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user