Commit e0d3683d authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

wineandroid: Use the user driver interface to create host desktops.

parent f7d45533
...@@ -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;
......
...@@ -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 );
}
...@@ -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,
......
...@@ -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,
......
...@@ -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_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 */ /* wait until we receive the surface changed event */
while (!screen_width) while (!screen_width)
......
# Desktop
@ cdecl wine_create_desktop(long long)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment