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
e0d3683d
Commit
e0d3683d
authored
May 29, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Use the user driver interface to create host desktops.
parent
f7d45533
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
16 deletions
+4
-16
android.h
dlls/wineandroid.drv/android.h
+1
-1
dllmain.c
dlls/wineandroid.drv/dllmain.c
+0
-9
init.c
dlls/wineandroid.drv/init.c
+1
-1
unixlib.h
dlls/wineandroid.drv/unixlib.h
+0
-1
window.c
dlls/wineandroid.drv/window.c
+2
-2
wineandroid.drv.spec
dlls/wineandroid.drv/wineandroid.drv.spec
+0
-2
No files found.
dlls/wineandroid.drv/android.h
View file @
e0d3683d
...
@@ -87,6 +87,7 @@ extern INT ANDROID_GetKeyNameText( LONG lparam, LPWSTR buffer, INT size ) DECLSP
...
@@ -87,6 +87,7 @@ extern INT ANDROID_GetKeyNameText( LONG lparam, LPWSTR buffer, INT size ) DECLSP
extern
UINT
ANDROID_MapVirtualKeyEx
(
UINT
code
,
UINT
maptype
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
UINT
ANDROID_MapVirtualKeyEx
(
UINT
code
,
UINT
maptype
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
SHORT
ANDROID_VkKeyScanEx
(
WCHAR
ch
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
SHORT
ANDROID_VkKeyScanEx
(
WCHAR
ch
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_SetCursor
(
HCURSOR
handle
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_SetCursor
(
HCURSOR
handle
)
DECLSPEC_HIDDEN
;
extern
BOOL
ANDROID_CreateDesktop
(
const
WCHAR
*
name
,
UINT
width
,
UINT
height
)
DECLSPEC_HIDDEN
;
extern
BOOL
ANDROID_CreateWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
ANDROID_CreateWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_DestroyWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
ANDROID_DestroyWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
ANDROID_ProcessEvents
(
DWORD
mask
)
DECLSPEC_HIDDEN
;
extern
BOOL
ANDROID_ProcessEvents
(
DWORD
mask
)
DECLSPEC_HIDDEN
;
...
@@ -112,7 +113,6 @@ extern void ANDROID_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_fla
...
@@ -112,7 +113,6 @@ extern void ANDROID_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_fla
/* unixlib interface */
/* unixlib interface */
extern
NTSTATUS
android_create_desktop
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
android_dispatch_ioctl
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
android_dispatch_ioctl
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
android_java_init
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
android_java_init
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
android_java_uninit
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
android_java_uninit
(
void
*
arg
)
DECLSPEC_HIDDEN
;
...
...
dlls/wineandroid.drv/dllmain.c
View file @
e0d3683d
...
@@ -132,12 +132,3 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
...
@@ -132,12 +132,3 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
return
TRUE
;
return
TRUE
;
}
}
/***********************************************************************
* wine_create_desktop (wineandroid.@)
*/
BOOL
CDECL
wine_create_desktop
(
UINT
width
,
UINT
height
)
{
return
ANDROID_CALL
(
create_desktop
,
NULL
);
}
dlls/wineandroid.drv/init.c
View file @
e0d3683d
...
@@ -350,6 +350,7 @@ static const struct user_driver_funcs android_drv_funcs =
...
@@ -350,6 +350,7 @@ static const struct user_driver_funcs android_drv_funcs =
.
pChangeDisplaySettings
=
ANDROID_ChangeDisplaySettings
,
.
pChangeDisplaySettings
=
ANDROID_ChangeDisplaySettings
,
.
pGetCurrentDisplaySettings
=
ANDROID_GetCurrentDisplaySettings
,
.
pGetCurrentDisplaySettings
=
ANDROID_GetCurrentDisplaySettings
,
.
pUpdateDisplayDevices
=
ANDROID_UpdateDisplayDevices
,
.
pUpdateDisplayDevices
=
ANDROID_UpdateDisplayDevices
,
.
pCreateDesktop
=
ANDROID_CreateDesktop
,
.
pCreateWindow
=
ANDROID_CreateWindow
,
.
pCreateWindow
=
ANDROID_CreateWindow
,
.
pDesktopWindowProc
=
ANDROID_DesktopWindowProc
,
.
pDesktopWindowProc
=
ANDROID_DesktopWindowProc
,
.
pDestroyWindow
=
ANDROID_DestroyWindow
,
.
pDestroyWindow
=
ANDROID_DestroyWindow
,
...
@@ -610,7 +611,6 @@ static HRESULT android_init( void *arg )
...
@@ -610,7 +611,6 @@ static HRESULT android_init( void *arg )
const
unixlib_entry_t
__wine_unix_call_funcs
[]
=
const
unixlib_entry_t
__wine_unix_call_funcs
[]
=
{
{
android_create_desktop
,
android_dispatch_ioctl
,
android_dispatch_ioctl
,
android_init
,
android_init
,
android_java_init
,
android_java_init
,
...
...
dlls/wineandroid.drv/unixlib.h
View file @
e0d3683d
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
enum
android_funcs
enum
android_funcs
{
{
unix_create_desktop
,
unix_dispatch_ioctl
,
unix_dispatch_ioctl
,
unix_init
,
unix_init
,
unix_java_init
,
unix_java_init
,
...
...
dlls/wineandroid.drv/window.c
View file @
e0d3683d
...
@@ -1670,9 +1670,9 @@ LRESULT ANDROID_WindowMessage( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )
...
@@ -1670,9 +1670,9 @@ LRESULT ANDROID_WindowMessage( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )
/***********************************************************************
/***********************************************************************
*
android_create_d
esktop
*
ANDROID_CreateD
esktop
*/
*/
NTSTATUS
android_create_desktop
(
void
*
arg
)
BOOL
ANDROID_CreateDesktop
(
const
WCHAR
*
name
,
UINT
width
,
UINT
height
)
{
{
/* wait until we receive the surface changed event */
/* wait until we receive the surface changed event */
while
(
!
screen_width
)
while
(
!
screen_width
)
...
...
dlls/wineandroid.drv/wineandroid.drv.spec
View file @
e0d3683d
# Desktop
@ cdecl wine_create_desktop(long long)
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