mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-09 22:28:38 +01:00
Fix mouse cursor showing up in some games due to overlay.
This commit is contained in:
parent
767fee6840
commit
2c95011e73
1 changed files with 4 additions and 1 deletions
|
@ -629,6 +629,7 @@ void Steam_Overlay::OverlayProc()
|
||||||
|
|
||||||
if (show_overlay)
|
if (show_overlay)
|
||||||
{
|
{
|
||||||
|
io.ConfigFlags &= ~ImGuiConfigFlags_NoMouseCursorChange;
|
||||||
// Set the overlay windows to the size of the game window
|
// Set the overlay windows to the size of the game window
|
||||||
ImGui::SetNextWindowPos({ 0,0 });
|
ImGui::SetNextWindowPos({ 0,0 });
|
||||||
ImGui::SetNextWindowSize({ static_cast<float>(io.DisplaySize.x),
|
ImGui::SetNextWindowSize({ static_cast<float>(io.DisplaySize.x),
|
||||||
|
@ -681,7 +682,9 @@ void Steam_Overlay::OverlayProc()
|
||||||
|
|
||||||
if (!show)
|
if (!show)
|
||||||
ShowOverlay(false);
|
ShowOverlay(false);
|
||||||
}// if(show_overlay)
|
} else {
|
||||||
|
io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Steam_Overlay::Callback(Common_Message *msg)
|
void Steam_Overlay::Callback(Common_Message *msg)
|
||||||
|
|
Loading…
Reference in a new issue