[pkg-wine-party] [wine] 217/345: user32: Add GetAutoRotationState/GetDisplayAutoRotationPreferences stubs.

Michael Gilbert mgilbert at moszumanska.debian.org
Sun May 7 00:53:06 UTC 2017


This is an automated email from the git hooks/post-receive script.

mgilbert pushed a commit to branch master
in repository wine.

commit d8db5e04bd6434f08859772e7c077e6da9d63249
Author: Austin English <austinenglish at gmail.com>
Date:   Tue Apr 25 01:25:43 2017 -0500

    user32: Add GetAutoRotationState/GetDisplayAutoRotationPreferences stubs.
    
    Signed-off-by: Austin English <austinenglish at gmail.com>
    Signed-off-by: Huw Davies <huw at codeweavers.com>
    Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
 dlls/user32/sysparams.c | 20 ++++++++++++++++++++
 dlls/user32/user32.spec |  2 ++
 include/winuser.h       | 22 ++++++++++++++++++++++
 3 files changed, 44 insertions(+)

diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c
index 67b052e..ab3d717 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -2913,3 +2913,23 @@ BOOL WINAPI IsProcessDPIAware(void)
     FIXME( "stub!\n");
     return FALSE;
 }
+
+/**********************************************************************
+ *              GetAutoRotationState [USER32.@]
+ */
+BOOL WINAPI GetAutoRotationState( AR_STATE *state )
+{
+    FIXME("(%p): stub\n", state);
+    *state = AR_NOT_SUPPORTED;
+    return TRUE;
+}
+
+/**********************************************************************
+ *              GetDisplayAutoRotationPreferences [USER32.@]
+ */
+BOOL WINAPI GetDisplayAutoRotationPreferences( ORIENTATION_PREFERENCE *orientation )
+{
+    FIXME("(%p): stub\n", orientation);
+    *orientation = ORIENTATION_PREFERENCE_NONE;
+    return TRUE;
+}
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index 6f2703a..b79a6b0 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -251,6 +251,7 @@
 @ stdcall GetAppCompatFlags(long)
 @ stdcall GetAppCompatFlags2(long)
 @ stdcall GetAsyncKeyState(long)
+@ stdcall GetAutoRotationState(ptr)
 @ stdcall GetCapture()
 @ stdcall GetCaretBlinkTime()
 @ stdcall GetCaretPos(ptr)
@@ -282,6 +283,7 @@
 @ stdcall GetDCEx(long long long)
 @ stdcall GetDesktopWindow()
 @ stdcall GetDialogBaseUnits()
+@ stdcall GetDisplayAutoRotationPreferences(ptr)
 @ stdcall GetDisplayConfigBufferSizes(long ptr ptr)
 @ stdcall GetDlgCtrlID(long)
 @ stdcall GetDlgItem(long long)
diff --git a/include/winuser.h b/include/winuser.h
index 25fc207..0d6c5d6 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -3284,6 +3284,26 @@ typedef struct tagCHANGEFILTERSTRUCT
 
 #define USER_DEFAULT_SCREEN_DPI 96
 
+typedef enum tagAR_STATE {
+    AR_ENABLED       = 0x0,
+    AR_DISABLED      = 0x1,
+    AR_SUPPRESSED    = 0x2,
+    AR_REMOTESESSION = 0x4,
+    AR_MULTIMON      = 0x8,
+    AR_NOSENSOR      = 0x10,
+    AR_NOT_SUPPORTED = 0x20,
+    AR_DOCKED        = 0x40,
+    AR_LAPTOP        = 0x80
+} AR_STATE, *PAR_STATE;
+
+typedef enum ORIENTATION_PREFERENCE {
+    ORIENTATION_PREFERENCE_NONE              = 0x0,
+    ORIENTATION_PREFERENCE_LANDSCAPE         = 0x1,
+    ORIENTATION_PREFERENCE_PORTRAIT          = 0x2,
+    ORIENTATION_PREFERENCE_LANDSCAPE_FLIPPED = 0x4,
+    ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED  = 0x8
+} ORIENTATION_PREFERENCE;
+
 #if defined(_WINGDI_) && !defined(NOGDI)
 WINUSERAPI LONG        WINAPI ChangeDisplaySettingsA(LPDEVMODEA,DWORD);
 WINUSERAPI LONG        WINAPI ChangeDisplaySettingsW(LPDEVMODEW,DWORD);
@@ -3563,6 +3583,7 @@ WINUSERAPI BOOL        WINAPI GetAltTabInfoW(HWND,INT,PALTTABINFO,LPWSTR,UINT);
 WINUSERAPI HWND        WINAPI GetAncestor(HWND,UINT);
 WINUSERAPI DWORD       WINAPI GetAppCompatFlags(HTASK);
 WINUSERAPI SHORT       WINAPI GetAsyncKeyState(INT);
+WINUSERAPI BOOL        WINAPI GetAutoRotationState(AR_STATE*);
 WINUSERAPI HWND        WINAPI GetCapture(void);
 WINUSERAPI UINT        WINAPI GetCaretBlinkTime(void);
 WINUSERAPI BOOL        WINAPI GetCaretPos(LPPOINT);
@@ -3605,6 +3626,7 @@ WINUSERAPI HDC         WINAPI GetDC(HWND);
 WINUSERAPI HDC         WINAPI GetDCEx(HWND,HRGN,DWORD);
 WINUSERAPI HWND        WINAPI GetDesktopWindow(void);
 WINUSERAPI DWORD       WINAPI GetDialogBaseUnits(void);
+WINUSERAPI BOOL        WINAPI GetDisplayAutoRotationPreferences(ORIENTATION_PREFERENCE*);
 WINUSERAPI INT         WINAPI GetDlgCtrlID(HWND);
 WINUSERAPI HWND        WINAPI GetDlgItem(HWND,INT);
 WINUSERAPI UINT        WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git



More information about the pkg-wine-party mailing list