mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 12:08:47 +02:00
Viewport, Platform, Examples: Added support for transparent window via PlatformIO Platform_SetWindowAlpha (#1542) + fixes for GLFW 3.3
This commit is contained in:
@ -3578,6 +3578,11 @@ void ImGui::UpdatePlatformWindows()
|
||||
ImGui::MemFree(title_displayed);
|
||||
}
|
||||
|
||||
// Update alpha
|
||||
if (viewport->LastAlpha != viewport->Alpha && g.PlatformIO.Platform_SetWindowAlpha)
|
||||
g.PlatformIO.Platform_SetWindowAlpha(viewport, viewport->Alpha);
|
||||
viewport->LastAlpha = viewport->Alpha;
|
||||
|
||||
// Show window. On startup ensure platform window don't get focus.
|
||||
if (is_new_window)
|
||||
{
|
||||
|
Reference in New Issue
Block a user