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
1aa8cf05
Commit
1aa8cf05
authored
Jun 21, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Add a stub implementation of EnumDisplaySettingsEx.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
508d7a33
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
init.c
dlls/wineandroid.drv/init.c
+39
-0
wineandroid.drv.spec
dlls/wineandroid.drv/wineandroid.drv.spec
+1
-0
No files found.
dlls/wineandroid.drv/init.c
View file @
1aa8cf05
...
...
@@ -268,6 +268,45 @@ BOOL CDECL ANDROID_EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC pr
}
/***********************************************************************
* ANDROID_EnumDisplaySettingsEx
*/
BOOL
CDECL
ANDROID_EnumDisplaySettingsEx
(
LPCWSTR
name
,
DWORD
n
,
LPDEVMODEW
devmode
,
DWORD
flags
)
{
static
const
WCHAR
dev_name
[
CCHDEVICENAME
]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'A'
,
'n'
,
'd'
,
'r'
,
'o'
,
'i'
,
'd'
,
' '
,
'd'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
0
};
devmode
->
dmSize
=
offsetof
(
DEVMODEW
,
dmICMMethod
);
devmode
->
dmSpecVersion
=
DM_SPECVERSION
;
devmode
->
dmDriverVersion
=
DM_SPECVERSION
;
memcpy
(
devmode
->
dmDeviceName
,
dev_name
,
sizeof
(
dev_name
)
);
devmode
->
dmDriverExtra
=
0
;
devmode
->
u2
.
dmDisplayFlags
=
0
;
devmode
->
dmDisplayFrequency
=
0
;
devmode
->
u1
.
s2
.
dmPosition
.
x
=
0
;
devmode
->
u1
.
s2
.
dmPosition
.
y
=
0
;
devmode
->
u1
.
s2
.
dmDisplayOrientation
=
0
;
devmode
->
u1
.
s2
.
dmDisplayFixedOutput
=
0
;
if
(
n
==
ENUM_CURRENT_SETTINGS
||
n
==
ENUM_REGISTRY_SETTINGS
)
n
=
0
;
if
(
n
==
0
)
{
devmode
->
dmPelsWidth
=
screen_width
;
devmode
->
dmPelsHeight
=
screen_height
;
devmode
->
dmBitsPerPel
=
screen_bpp
;
devmode
->
dmDisplayFrequency
=
60
;
devmode
->
dmFields
=
DM_PELSWIDTH
|
DM_PELSHEIGHT
|
DM_BITSPERPEL
|
DM_DISPLAYFLAGS
|
DM_DISPLAYFREQUENCY
;
TRACE
(
"mode %d -- %dx%d %d bpp @%d Hz
\n
"
,
n
,
devmode
->
dmPelsWidth
,
devmode
->
dmPelsHeight
,
devmode
->
dmBitsPerPel
,
devmode
->
dmDisplayFrequency
);
return
TRUE
;
}
TRACE
(
"mode %d -- not present
\n
"
,
n
);
SetLastError
(
ERROR_NO_MORE_FILES
);
return
FALSE
;
}
static
const
struct
gdi_dc_funcs
android_drv_funcs
=
{
NULL
,
/* pAbortDoc */
...
...
dlls/wineandroid.drv/wineandroid.drv.spec
View file @
1aa8cf05
...
...
@@ -11,6 +11,7 @@
@ cdecl VkKeyScanEx(long long) ANDROID_VkKeyScanEx
@ cdecl ChangeDisplaySettingsEx(ptr ptr long long long) ANDROID_ChangeDisplaySettingsEx
@ cdecl EnumDisplayMonitors(long ptr ptr long) ANDROID_EnumDisplayMonitors
@ cdecl EnumDisplaySettingsEx(ptr long ptr long) ANDROID_EnumDisplaySettingsEx
@ cdecl GetMonitorInfo(long ptr) ANDROID_GetMonitorInfo
@ cdecl CreateWindow(long) ANDROID_CreateWindow
@ cdecl DestroyWindow(long) ANDROID_DestroyWindow
...
...
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