Skip to content

Commit

Permalink
wineandroid: Use the user driver interface to create host desktops.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbernon authored and julliard committed May 30, 2023
1 parent f7d4553 commit e0d3683
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dlls/wineandroid.drv/android.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 SHORT ANDROID_VkKeyScanEx( WCHAR ch, HKL hkl ) 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 void ANDROID_DestroyWindow( HWND hwnd ) DECLSPEC_HIDDEN;
extern BOOL ANDROID_ProcessEvents( DWORD mask ) DECLSPEC_HIDDEN;
Expand All @@ -112,7 +113,6 @@ extern void ANDROID_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_fla

/* unixlib interface */

extern NTSTATUS android_create_desktop( 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_uninit( void *arg ) DECLSPEC_HIDDEN;
Expand Down
9 changes: 0 additions & 9 deletions dlls/wineandroid.drv/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,3 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )

return TRUE;
}


/***********************************************************************
* wine_create_desktop (wineandroid.@)
*/
BOOL CDECL wine_create_desktop( UINT width, UINT height )
{
return ANDROID_CALL( create_desktop, NULL );
}
2 changes: 1 addition & 1 deletion dlls/wineandroid.drv/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ static const struct user_driver_funcs android_drv_funcs =
.pChangeDisplaySettings = ANDROID_ChangeDisplaySettings,
.pGetCurrentDisplaySettings = ANDROID_GetCurrentDisplaySettings,
.pUpdateDisplayDevices = ANDROID_UpdateDisplayDevices,
.pCreateDesktop = ANDROID_CreateDesktop,
.pCreateWindow = ANDROID_CreateWindow,
.pDesktopWindowProc = ANDROID_DesktopWindowProc,
.pDestroyWindow = ANDROID_DestroyWindow,
Expand Down Expand Up @@ -610,7 +611,6 @@ static HRESULT android_init( void *arg )

const unixlib_entry_t __wine_unix_call_funcs[] =
{
android_create_desktop,
android_dispatch_ioctl,
android_init,
android_java_init,
Expand Down
1 change: 0 additions & 1 deletion dlls/wineandroid.drv/unixlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

enum android_funcs
{
unix_create_desktop,
unix_dispatch_ioctl,
unix_init,
unix_java_init,
Expand Down
4 changes: 2 additions & 2 deletions dlls/wineandroid.drv/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -1670,9 +1670,9 @@ LRESULT ANDROID_WindowMessage( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )


/***********************************************************************
* android_create_desktop
* ANDROID_CreateDesktop
*/
NTSTATUS android_create_desktop( void *arg )
BOOL ANDROID_CreateDesktop( const WCHAR *name, UINT width, UINT height )
{
/* wait until we receive the surface changed event */
while (!screen_width)
Expand Down
2 changes: 0 additions & 2 deletions dlls/wineandroid.drv/wineandroid.drv.spec
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
# Desktop
@ cdecl wine_create_desktop(long long)

0 comments on commit e0d3683

Please sign in to comment.