mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 14:03:38 +00:00
user32: Implement GetAwarenessFromDpiAwarenessContext().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4e752086d7
commit
d17ca871dd
|
@ -2942,6 +2942,18 @@ BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR lpszDeviceName, DWORD iModeNum,
|
|||
return USER_Driver->pEnumDisplaySettingsEx(lpszDeviceName, iModeNum, lpDevMode, dwFlags);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* GetAwarenessFromDpiAwarenessContext (USER32.@)
|
||||
*/
|
||||
DPI_AWARENESS WINAPI GetAwarenessFromDpiAwarenessContext( DPI_AWARENESS_CONTEXT context )
|
||||
{
|
||||
if (context == DPI_AWARENESS_CONTEXT_UNAWARE) return DPI_AWARENESS_UNAWARE;
|
||||
if (context == DPI_AWARENESS_CONTEXT_SYSTEM_AWARE) return DPI_AWARENESS_SYSTEM_AWARE;
|
||||
if (context == DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE) return DPI_AWARENESS_PER_MONITOR_AWARE;
|
||||
if (context == DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) return DPI_AWARENESS_PER_MONITOR_AWARE;
|
||||
return DPI_AWARENESS_INVALID;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* IsValidDpiAwarenessContext (USER32.@)
|
||||
*/
|
||||
|
|
|
@ -253,6 +253,7 @@
|
|||
@ stdcall GetAppCompatFlags2(long)
|
||||
@ stdcall GetAsyncKeyState(long)
|
||||
@ stdcall GetAutoRotationState(ptr)
|
||||
@ stdcall GetAwarenessFromDpiAwarenessContext(long)
|
||||
@ stdcall GetCapture()
|
||||
@ stdcall GetCaretBlinkTime()
|
||||
@ stdcall GetCaretPos(ptr)
|
||||
|
|
|
@ -3625,6 +3625,7 @@ WINUSERAPI HWND WINAPI GetAncestor(HWND,UINT);
|
|||
WINUSERAPI DWORD WINAPI GetAppCompatFlags(HTASK);
|
||||
WINUSERAPI SHORT WINAPI GetAsyncKeyState(INT);
|
||||
WINUSERAPI BOOL WINAPI GetAutoRotationState(AR_STATE*);
|
||||
WINUSERAPI DPI_AWARENESS WINAPI GetAwarenessFromDpiAwarenessContext(DPI_AWARENESS_CONTEXT);
|
||||
WINUSERAPI HWND WINAPI GetCapture(void);
|
||||
WINUSERAPI UINT WINAPI GetCaretBlinkTime(void);
|
||||
WINUSERAPI BOOL WINAPI GetCaretPos(LPPOINT);
|
||||
|
|
Loading…
Reference in a new issue