Skip to content

Commit

Permalink
Update ImGui
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Nov 30, 2024
1 parent f10f7a5 commit cb7bff0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GSE/GSE.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<TargetName>libGSE</TargetName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ImGui.NET" Version="1.90.1.1" ExcludeAssets="native" />
<PackageReference Include="ImGui.NET" Version="1.91.0.1" ExcludeAssets="native" />
<PackageReference Include="SharpCompress" Version="0.38.0" />
<PackageReference Include="System.IO.Hashing" Version="9.0.0" />
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.106" PrivateAssets="all" />
Expand Down
4 changes: 2 additions & 2 deletions GSE/Gui/ImGuiWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private static unsafe void SetClipboardText(nint userdata, nint text)
}

[UnmanagedCallersOnly(CallConvs = [ typeof(CallConvCdecl) ])]
private static unsafe void SetPlatformImeData(ImGuiViewport* viewport, ImGuiPlatformImeData* data)
private static unsafe void PlatformSetImeData(ImGuiViewport* viewport, ImGuiPlatformImeData* data)
{
if (data->WantVisible != 0)
{
Expand Down Expand Up @@ -522,7 +522,7 @@ public ImGuiWindow(string windowName, Config config, bool isMainWindow)
io.ClipboardUserData = io.BackendPlatformUserData;
io.GetClipboardTextFn = (nint)(delegate* unmanaged[Cdecl]<nint, nint>)&GetClipboardText;
io.SetClipboardTextFn = (nint)(delegate* unmanaged[Cdecl]<nint, nint, void>)&SetClipboardText;
io.SetPlatformImeDataFn = (nint)(delegate* unmanaged[Cdecl]<ImGuiViewport*, ImGuiPlatformImeData*, void>)&SetPlatformImeData;
io.PlatformSetImeDataFn = (nint)(delegate* unmanaged[Cdecl]<ImGuiViewport*, ImGuiPlatformImeData*, void>)&PlatformSetImeData;
}

_dpiScale = GetDpiScale();
Expand Down

0 comments on commit cb7bff0

Please sign in to comment.