Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2b740588
Commit
2b740588
authored
Feb 22, 2016
by
Austin English
Committed by
Alexandre Julliard
Mar 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add QueryDisplayConfig stub.
Signed-off-by:
Austin English
<
austinenglish@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
84d0c4f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
195 additions
and
0 deletions
+195
-0
misc.c
dlls/user32/misc.c
+12
-0
user32.spec
dlls/user32/user32.spec
+1
-0
wingdi.h
include/wingdi.h
+182
-0
No files found.
dlls/user32/misc.c
View file @
2b740588
...
...
@@ -474,6 +474,18 @@ BOOL WINAPI EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPA
return
USER_Driver
->
pEnumDisplayMonitors
(
hdc
,
rect
,
proc
,
lp
);
}
/***********************************************************************
* QueryDisplayConfig (USER32.@)
*/
LONG
WINAPI
QueryDisplayConfig
(
UINT32
flags
,
UINT32
*
numpathelements
,
DISPLAYCONFIG_PATH_INFO
*
pathinfo
,
UINT32
*
numinfoelements
,
DISPLAYCONFIG_MODE_INFO
*
modeinfo
,
DISPLAYCONFIG_TOPOLOGY_ID
*
topologyid
)
{
FIXME
(
"(%08x %p %p %p %p %p)
\n
"
,
flags
,
numpathelements
,
pathinfo
,
numinfoelements
,
modeinfo
,
topologyid
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
/***********************************************************************
* RegisterSystemThread (USER32.@)
*/
...
...
dlls/user32/user32.spec
View file @
2b740588
...
...
@@ -550,6 +550,7 @@
# @ stub PrivateSetDbgTag
# @ stub PrivateSetRipFlags
@ stdcall PtInRect(ptr int64)
@ stdcall QueryDisplayConfig(long ptr ptr ptr ptr ptr)
@ stub QuerySendMessage
# @ stub QueryUserCounters
@ stdcall RealChildWindowFromPoint(long int64)
...
...
include/wingdi.h
View file @
2b740588
...
...
@@ -3325,6 +3325,188 @@ DECL_WINELIB_TYPE_AW(LPDISPLAY_DEVICE)
#define DISPLAY_DEVICE_MIRRORING_DRIVER 0x00000008
#define DISPLAY_DEVICE_VGA_COMPATIBLE 0x00000010
typedef
struct
DISPLAYCONFIG_DESKTOP_IMAGE_INFO
{
POINTL
PathSourceSize
;
RECTL
DesktopImageRegion
;
RECTL
DesktopImageClip
;
}
DISPLAYCONFIG_DESKTOP_IMAGE_INFO
;
typedef
enum
{
DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE
=
1
,
DISPLAYCONFIG_MODE_INFO_TYPE_TARGET
=
2
,
DISPLAYCONFIG_MODE_INFO_TYPE_DESKTOP_IMAGE
=
3
,
DISPLAYCONFIG_MODE_INFO_TYPE_FORCE_UINT32
=
0xffffffff
}
DISPLAYCONFIG_MODE_INFO_TYPE
;
typedef
enum
{
DISPLAYCONFIG_PIXELFORMAT_8BPP
=
1
,
DISPLAYCONFIG_PIXELFORMAT_16BPP
=
2
,
DISPLAYCONFIG_PIXELFORMAT_24BPP
=
3
,
DISPLAYCONFIG_PIXELFORMAT_32BPP
=
4
,
DISPLAYCONFIG_PIXELFORMAT_NONGDI
=
5
,
DISPLAYCONFIG_PIXELFORMAT_FORCE_UINT32
=
0xffffffff
}
DISPLAYCONFIG_PIXELFORMAT
;
typedef
enum
{
DISPLAYCONFIG_ROTATION_IDENTITY
=
1
,
DISPLAYCONFIG_ROTATION_ROTATE90
=
2
,
DISPLAYCONFIG_ROTATION_ROTATE180
=
3
,
DISPLAYCONFIG_ROTATION_ROTATE270
=
4
,
DISPLAYCONFIG_ROTATION_FORCE_UINT32
=
0xffffffff
}
DISPLAYCONFIG_ROTATION
;
typedef
enum
{
DISPLAYCONFIG_SCALING_IDENTITY
=
1
,
DISPLAYCONFIG_SCALING_CENTERED
=
2
,
DISPLAYCONFIG_SCALING_STRETCHED
=
3
,
DISPLAYCONFIG_SCALING_ASPECTRATIOCENTEREDMAX
=
4
,
DISPLAYCONFIG_SCALING_CUSTOM
=
5
,
DISPLAYCONFIG_SCALING_PREFERRED
=
128
,
DISPLAYCONFIG_SCALING_FORCE_UINT32
=
0xffffffff
}
DISPLAYCONFIG_SCALING
;
typedef
enum
{
DISPLAYCONFIG_SCANLINE_ORDERING_UNSPECIFIED
=
0
,
DISPLAYCONFIG_SCANLINE_ORDERING_PROGRESSIVE
=
1
,
DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED
=
2
,
DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_UPPERFIELDFIRST
=
DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED
,
DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_LOWERFIELDFIRST
=
3
,
DISPLAYCONFIG_SCANLINE_ORDERING_FORCE_UINT32
=
0xffffffff
}
DISPLAYCONFIG_SCANLINE_ORDERING
;
typedef
enum
{
DISPLAYCONFIG_TOPOLOGY_INTERNAL
=
0x00000001
,
DISPLAYCONFIG_TOPOLOGY_CLONE
=
0x00000002
,
DISPLAYCONFIG_TOPOLOGY_EXTEND
=
0x00000004
,
DISPLAYCONFIG_TOPOLOGY_EXTERNAL
=
0x00000008
,
DISPLAYCONFIG_TOPOLOGY_FORCE_UINT32
=
0xffffffff
}
DISPLAYCONFIG_TOPOLOGY_ID
;
typedef
enum
{
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_OTHER
=
-
1
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HD15
=
0
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SVIDEO
=
1
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPOSITE_VIDEO
=
2
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPONENT_VIDEO
=
3
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DVI
=
4
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HDMI
=
5
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_LVDS
=
6
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_D_JPN
=
8
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDI
=
9
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EXTERNAL
=
10
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EMBEDDED
=
11
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EXTERNAL
=
12
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EMBEDDED
=
13
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDTVDONGLE
=
14
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_MIRACAST
=
15
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL
=
0x80000000
,
DISPLAYCONFIG_OUTPUT_TECHNOLOGY_FORCE_UINT32
=
0xffffffff
}
DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY
;
typedef
struct
DISPLAYCONFIG_2DREGION
{
UINT32
cx
;
UINT32
cy
;
}
DISPLAYCONFIG_2DREGION
;
typedef
struct
DISPLAYCONFIG_RATIONAL
{
UINT32
Numerator
;
UINT32
Denominator
;
}
DISPLAYCONFIG_RATIONAL
;
typedef
struct
DISPLAYCONFIG_PATH_SOURCE_INFO
{
LUID
adapterId
;
UINT32
id
;
union
{
UINT32
modeInfoIdx
;
struct
{
UINT32
cloneGroupId
:
16
;
UINT32
sourceModeInfoIdx
:
16
;
}
DUMMYSTRUCTNAME
;
}
DUMMYUNIONNAME
;
UINT32
statusFlags
;
}
DISPLAYCONFIG_PATH_SOURCE_INFO
;
typedef
struct
DISPLAYCONFIG_SOURCE_MODE
{
UINT32
width
;
UINT32
height
;
DISPLAYCONFIG_PIXELFORMAT
pixelFormat
;
POINTL
position
;
}
DISPLAYCONFIG_SOURCE_MODE
;
typedef
struct
DISPLAYCONFIG_VIDEO_SIGNAL_INFO
{
UINT64
pixelRate
;
DISPLAYCONFIG_RATIONAL
hSyncFreq
;
DISPLAYCONFIG_RATIONAL
vSyncFreq
;
DISPLAYCONFIG_2DREGION
activeSize
;
DISPLAYCONFIG_2DREGION
totalSize
;
union
{
struct
{
UINT32
videoStandard
:
16
;
UINT32
vSyncFreqDivider
:
6
;
UINT32
reserved
:
10
;
}
AdditionalSignalInfo
;
UINT32
videoStandard
;
}
DUMMYUNIONNAME
;
DISPLAYCONFIG_SCANLINE_ORDERING
scanLineOrdering
;
}
DISPLAYCONFIG_VIDEO_SIGNAL_INFO
;
typedef
struct
DISPLAYCONFIG_PATH_TARGET_INFO
{
LUID
adapterId
;
UINT32
id
;
union
{
UINT32
modeInfoIdx
;
struct
{
UINT32
desktopModeInfoIdx
:
16
;
UINT32
targetModeInfoIdx
:
16
;
}
DUMMYSTRUCTNAME
;
}
DUMMYUNIONNAME
;
DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY
outputTechnology
;
DISPLAYCONFIG_ROTATION
rotation
;
DISPLAYCONFIG_SCALING
scaling
;
DISPLAYCONFIG_RATIONAL
refreshRate
;
DISPLAYCONFIG_SCANLINE_ORDERING
scanLineOrdering
;
BOOL
targetAvailable
;
UINT32
statusFlags
;
}
DISPLAYCONFIG_PATH_TARGET_INFO
;
typedef
struct
DISPLAYCONFIG_TARGET_MODE
{
DISPLAYCONFIG_VIDEO_SIGNAL_INFO
targetVideoSignalInfo
;
}
DISPLAYCONFIG_TARGET_MODE
;
typedef
struct
DISPLAYCONFIG_PATH_INFO
{
DISPLAYCONFIG_PATH_SOURCE_INFO
sourceInfo
;
DISPLAYCONFIG_PATH_TARGET_INFO
targetInfo
;
UINT32
flags
;
}
DISPLAYCONFIG_PATH_INFO
;
typedef
struct
DISPLAYCONFIG_MODE_INFO
{
DISPLAYCONFIG_MODE_INFO_TYPE
infoType
;
UINT32
id
;
LUID
adapterId
;
union
{
DISPLAYCONFIG_TARGET_MODE
targetMode
;
DISPLAYCONFIG_SOURCE_MODE
sourceMode
;
DISPLAYCONFIG_DESKTOP_IMAGE_INFO
desktopImageInfo
;
}
DUMMYUNIONNAME
;
}
DISPLAYCONFIG_MODE_INFO
;
/* For GetDisplayConfigBufferSizes */
#define QDC_ALL_PATHS 0x00000001
#define QDC_ONLY_ACTIVE_PATHS 0x00000002
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment