QWindowsContext: proper check resolved function
Change-Id: I9a223dc2efa2205dc3ae8d300cf06b12e06ed0f9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
25b8af0747
commit
8ff1ae89bf
@ -148,7 +148,7 @@ static inline bool sessionManagerInteractionBlocked() { return false; }
|
|||||||
|
|
||||||
static inline int windowDpiAwareness(HWND hwnd)
|
static inline int windowDpiAwareness(HWND hwnd)
|
||||||
{
|
{
|
||||||
return QWindowsContext::user32dll.getWindowDpiAwarenessContext && QWindowsContext::user32dll.getWindowDpiAwarenessContext
|
return QWindowsContext::user32dll.getWindowDpiAwarenessContext && QWindowsContext::user32dll.getAwarenessFromDpiAwarenessContext
|
||||||
? QWindowsContext::user32dll.getAwarenessFromDpiAwarenessContext(QWindowsContext::user32dll.getWindowDpiAwarenessContext(hwnd))
|
? QWindowsContext::user32dll.getAwarenessFromDpiAwarenessContext(QWindowsContext::user32dll.getWindowDpiAwarenessContext(hwnd))
|
||||||
: -1;
|
: -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user