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
4f09c548
Commit
4f09c548
authored
Jun 04, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Move wine_create_desktop_to dllmain.c.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
2801436a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
4 deletions
+19
-4
android.h
dlls/wineandroid.drv/android.h
+4
-0
dllmain.c
dlls/wineandroid.drv/dllmain.c
+9
-0
init.c
dlls/wineandroid.drv/init.c
+1
-0
unixlib.h
dlls/wineandroid.drv/unixlib.h
+1
-0
window.c
dlls/wineandroid.drv/window.c
+3
-3
wineandroid.drv.spec
dlls/wineandroid.drv/wineandroid.drv.spec
+1
-1
No files found.
dlls/wineandroid.drv/android.h
View file @
4f09c548
...
...
@@ -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
;
...
...
dlls/wineandroid.drv/dllmain.c
View file @
4f09c548
...
...
@@ -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
);
}
dlls/wineandroid.drv/init.c
View file @
4f09c548
...
...
@@ -603,6 +603,7 @@ static HRESULT android_init( void *arg )
const
unixlib_entry_t
__wine_unix_call_funcs
[]
=
{
android_create_desktop
,
android_init
,
};
...
...
dlls/wineandroid.drv/unixlib.h
View file @
4f09c548
...
...
@@ -21,6 +21,7 @@
enum
android_funcs
{
unix_create_desktop
,
unix_init
,
unix_funcs_count
};
...
...
dlls/wineandroid.drv/window.c
View file @
4f09c548
...
...
@@ -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
;
}
dlls/wineandroid.drv/wineandroid.drv.spec
View file @
4f09c548
# Desktop
@ cdecl wine_create_desktop(long long)
ANDROID_create_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