fix: DPI scaling

This commit is contained in:
WerWolv
2025-07-10 14:39:52 +02:00
parent da2aa85a8a
commit 2ab54baa2c
4 changed files with 21 additions and 9 deletions

View File

@@ -78,7 +78,6 @@ namespace hex {
ImHexApi::System::impl::setNativeScale(newScale);
ThemeManager::reapplyCurrentTheme();
ImGui::GetStyle().ScaleAllSizes(newScale);
return TRUE;
}
@@ -153,6 +152,11 @@ namespace hex {
// Custom window procedure for borderless window
static LRESULT borderlessWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
switch (uMsg) {
case WM_MOVE: {
auto imhexWindow = static_cast<Window*>(glfwGetWindowUserPointer(ImHexApi::System::getMainWindowHandle()));
imhexWindow->fullFrame();
break;
}
case WM_MOUSELAST:
break;
case WM_NCACTIVATE:
@@ -310,6 +314,7 @@ namespace hex {
break;
}
break;
}
default: