diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-17 15:28:59 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-21 11:05:03 +0000 |
commit | e2e483ac47ae12c9d4151d7936d2f793fbc60620 (patch) | |
tree | afd9024a78030eb8e4680ad453b7d7ced0c5cdd2 /widget/windows/nsUXThemeData.cpp | |
parent | 892a2d9655650616c361750a4d1a49f7d7914ad2 (diff) | |
download | UXP-e2e483ac47ae12c9d4151d7936d2f793fbc60620.tar UXP-e2e483ac47ae12c9d4151d7936d2f793fbc60620.tar.gz UXP-e2e483ac47ae12c9d4151d7936d2f793fbc60620.tar.lz UXP-e2e483ac47ae12c9d4151d7936d2f793fbc60620.tar.xz UXP-e2e483ac47ae12c9d4151d7936d2f793fbc60620.zip |
Issue #1653 - Part 2: Stop indirectly loading DWM functions through WinUtils.
Diffstat (limited to 'widget/windows/nsUXThemeData.cpp')
-rw-r--r-- | widget/windows/nsUXThemeData.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/widget/windows/nsUXThemeData.cpp b/widget/windows/nsUXThemeData.cpp index 4d9ac9570..ce2777585 100644 --- a/widget/windows/nsUXThemeData.cpp +++ b/widget/windows/nsUXThemeData.cpp @@ -156,10 +156,10 @@ nsUXThemeData::UpdateTitlebarInfo(HWND aWnd) if (!sTitlebarInfoPopulatedAero && nsUXThemeData::CheckForCompositor()) { RECT captionButtons; - if (SUCCEEDED(WinUtils::dwmGetWindowAttributePtr(aWnd, - DWMWA_CAPTION_BUTTON_BOUNDS, - &captionButtons, - sizeof(captionButtons)))) { + if (SUCCEEDED(DwmGetWindowAttribute(aWnd, + DWMWA_CAPTION_BUTTON_BOUNDS, + &captionButtons, + sizeof(captionButtons)))) { sCommandButtons[CMDBUTTONIDX_BUTTONBOX].cx = captionButtons.right - captionButtons.left - 3; sCommandButtons[CMDBUTTONIDX_BUTTONBOX].cy = (captionButtons.bottom - captionButtons.top) - 1; sTitlebarInfoPopulatedAero = true; @@ -293,8 +293,8 @@ bool nsUXThemeData::IsHighContrastOn() bool nsUXThemeData::CheckForCompositor(bool aUpdateCache) { static BOOL sCachedValue = FALSE; - if (aUpdateCache && WinUtils::dwmIsCompositionEnabledPtr) { - WinUtils::dwmIsCompositionEnabledPtr(&sCachedValue); + if (aUpdateCache) { + DwmIsCompositionEnabled(&sCachedValue); } return sCachedValue; } |