mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-22 13:44:09 +00:00
wineandroid: Move wine_create_desktop_to dllmain.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
This commit is contained in:
parent
2801436afe
commit
4f09c54887
|
@ -112,6 +112,10 @@ extern void ANDROID_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_fla
|
|||
const RECT *visible_rect, const RECT *valid_rects,
|
||||
struct window_surface *surface ) DECLSPEC_HIDDEN;
|
||||
|
||||
/* unixlib interface */
|
||||
|
||||
extern NTSTATUS android_create_desktop( void *arg ) DECLSPEC_HIDDEN;
|
||||
|
||||
extern unsigned int screen_width DECLSPEC_HIDDEN;
|
||||
extern unsigned int screen_height DECLSPEC_HIDDEN;
|
||||
extern RECT virtual_screen_rect DECLSPEC_HIDDEN;
|
||||
|
|
|
@ -34,3 +34,12 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
|
|||
DisableThreadLibraryCalls( inst );
|
||||
return !ANDROID_CALL(init, NULL);
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* wine_create_desktop (wineandroid.@)
|
||||
*/
|
||||
BOOL CDECL wine_create_desktop( UINT width, UINT height )
|
||||
{
|
||||
return ANDROID_CALL( create_desktop, NULL );
|
||||
}
|
||||
|
|
|
@ -603,6 +603,7 @@ static HRESULT android_init( void *arg )
|
|||
|
||||
const unixlib_entry_t __wine_unix_call_funcs[] =
|
||||
{
|
||||
android_create_desktop,
|
||||
android_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
enum android_funcs
|
||||
{
|
||||
unix_create_desktop,
|
||||
unix_init,
|
||||
unix_funcs_count
|
||||
};
|
||||
|
|
|
@ -1668,9 +1668,9 @@ LRESULT ANDROID_WindowMessage( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )
|
|||
|
||||
|
||||
/***********************************************************************
|
||||
* ANDROID_create_desktop
|
||||
* android_create_desktop
|
||||
*/
|
||||
BOOL CDECL ANDROID_create_desktop( UINT width, UINT height )
|
||||
NTSTATUS android_create_desktop( void *arg )
|
||||
{
|
||||
/* wait until we receive the surface changed event */
|
||||
while (!screen_width)
|
||||
|
@ -1682,5 +1682,5 @@ BOOL CDECL ANDROID_create_desktop( UINT width, UINT height )
|
|||
}
|
||||
process_events( QS_ALLINPUT );
|
||||
}
|
||||
return TRUE;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# Desktop
|
||||
@ cdecl wine_create_desktop(long long) ANDROID_create_desktop
|
||||
@ cdecl wine_create_desktop(long long)
|
||||
|
|
Loading…
Reference in a new issue