mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 513162 - Fix for MOZ_WINSDK_TARGETVER < MOZ_NTDDI_LONGHORN r=jmathies
This commit is contained in:
parent
d7da9f3152
commit
3470e16e4e
@ -187,13 +187,15 @@ public:
|
|||||||
static DwmSetWindowAttributeProc dwmSetWindowAttributePtr;
|
static DwmSetWindowAttributeProc dwmSetWindowAttributePtr;
|
||||||
static DwmInvalidateIconicBitmapsProc dwmInvalidateIconicBitmapsPtr;
|
static DwmInvalidateIconicBitmapsProc dwmInvalidateIconicBitmapsPtr;
|
||||||
static DwmDefWindowProcProc dwmDwmDefWindowProcPtr;
|
static DwmDefWindowProcProc dwmDwmDefWindowProcPtr;
|
||||||
|
#endif // MOZ_WINSDK_TARGETVER >= MOZ_NTDDI_LONGHORN
|
||||||
|
|
||||||
static PRBool CheckForCompositor() {
|
static PRBool CheckForCompositor() {
|
||||||
BOOL compositionIsEnabled = FALSE;
|
BOOL compositionIsEnabled = FALSE;
|
||||||
|
#if MOZ_WINSDK_TARGETVER >= MOZ_NTDDI_LONGHORN
|
||||||
if(dwmIsCompositionEnabledPtr)
|
if(dwmIsCompositionEnabledPtr)
|
||||||
dwmIsCompositionEnabledPtr(&compositionIsEnabled);
|
dwmIsCompositionEnabledPtr(&compositionIsEnabled);
|
||||||
|
#endif // MOZ_WINSDK_TARGETVER >= MOZ_NTDDI_LONGHORN
|
||||||
return sHaveCompositor = (compositionIsEnabled != 0);
|
return sHaveCompositor = (compositionIsEnabled != 0);
|
||||||
}
|
}
|
||||||
#endif // MOZ_WINSDK_TARGETVER >= MOZ_NTDDI_LONGHORN
|
|
||||||
};
|
};
|
||||||
#endif // __UXThemeData_h__
|
#endif // __UXThemeData_h__
|
||||||
|
@ -4399,6 +4399,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
|
|||||||
|
|
||||||
static PRBool getWheelInfo = PR_TRUE;
|
static PRBool getWheelInfo = PR_TRUE;
|
||||||
|
|
||||||
|
#if MOZ_WINSDK_TARGETVER >= MOZ_NTDDI_LONGHORN
|
||||||
// Glass hit testing w/custom transparent margins
|
// Glass hit testing w/custom transparent margins
|
||||||
LRESULT dwmHitResult;
|
LRESULT dwmHitResult;
|
||||||
if (mCustomNonClient &&
|
if (mCustomNonClient &&
|
||||||
@ -4408,6 +4409,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
|
|||||||
*aRetValue = dwmHitResult;
|
*aRetValue = dwmHitResult;
|
||||||
return PR_TRUE;
|
return PR_TRUE;
|
||||||
}
|
}
|
||||||
|
#endif // MOZ_WINSDK_TARGETVER >= MOZ_NTDDI_LONGHORN
|
||||||
|
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
#ifndef WINCE
|
#ifndef WINCE
|
||||||
|
Loading…
Reference in New Issue
Block a user