mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windowing: Re-enable rounded corners on Windows 11
This commit is contained in:
parent
9817a2bb66
commit
4c5c336e65
1 changed files with 0 additions and 5 deletions
|
|
@ -2491,11 +2491,6 @@ private:
|
|||
static constexpr MARGINS margins { 1, 1, 0, 0 };
|
||||
::DwmExtendFrameIntoClientArea (hwnd, &margins);
|
||||
::SetWindowPos (hwnd, nullptr, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER);
|
||||
|
||||
// Disable rounded corners on Windows 11 for custom windows with no titlebar,
|
||||
// because window borders look weird when they get rounded away.
|
||||
const auto pref = DWMWCP_DONOTROUND;
|
||||
DwmSetWindowAttribute (hwnd, DWMWA_WINDOW_CORNER_PREFERENCE, &pref, sizeof (pref));
|
||||
}
|
||||
|
||||
#if JUCE_DEBUG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue