From cde5940063300baaa2859b7c45b572e7e618d50b Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 10 Jun 2023 15:15:38 +0200 Subject: [PATCH] fix: Popups sometimes not appearing centered on the main window --- lib/libimhex/include/hex/api/imhex_api.hpp | 2 +- lib/libimhex/source/api/imhex_api.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libimhex/include/hex/api/imhex_api.hpp b/lib/libimhex/include/hex/api/imhex_api.hpp index 5bcf2c14f..646802091 100644 --- a/lib/libimhex/include/hex/api/imhex_api.hpp +++ b/lib/libimhex/include/hex/api/imhex_api.hpp @@ -324,7 +324,7 @@ namespace hex { namespace impl { - void setMainWindowPosition(u32 x, u32 y); + void setMainWindowPosition(i32 x, i32 y); void setMainWindowSize(u32 width, u32 height); void setMainDockSpaceId(ImGuiID id); diff --git a/lib/libimhex/source/api/imhex_api.cpp b/lib/libimhex/source/api/imhex_api.cpp index 3e461865f..a6d1734b9 100644 --- a/lib/libimhex/source/api/imhex_api.cpp +++ b/lib/libimhex/source/api/imhex_api.cpp @@ -334,7 +334,7 @@ namespace hex { static ImVec2 s_mainWindowPos; static ImVec2 s_mainWindowSize; - void setMainWindowPosition(u32 x, u32 y) { + void setMainWindowPosition(i32 x, i32 y) { s_mainWindowPos = ImVec2(x, y); }