mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
fix: DPI scaling
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user