mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
fix LaunchButton for viewports in API3
This commit is contained in:
parent
3f9d97f65f
commit
b0dc6490bf
1 changed files with 4 additions and 3 deletions
|
|
@ -42,8 +42,9 @@ namespace Penumbra.UI
|
|||
return;
|
||||
}
|
||||
|
||||
var ss = ImGui.GetIO().DisplaySize;
|
||||
|
||||
var ss = ImGui.GetMainViewport().Size + ImGui.GetMainViewport().Pos;
|
||||
ImGui.SetNextWindowViewport(ImGui.GetMainViewport().ID);
|
||||
|
||||
ImGui.SetNextWindowPos( ss - WindowPosOffset, ImGuiCond.Always );
|
||||
|
||||
if( !ImGui.Begin( MenuButtonsName, ButtonFlags ) )
|
||||
|
|
@ -60,4 +61,4 @@ namespace Penumbra.UI
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue