From: Twaik Yont <9674930+twaik@users.noreply.github.com> Use “-1x-1” instead of an empty size in the /desktop option when launching explorer.exe. An empty size causes get_default_desktop_size() to be used, which falls back to a fixed default (typically 800x600). This prevents the desktop from matching the actual display size provided by the Android backend. Passing “-1x-1” is accepted by parse_size() and results in large unsigned values, which are then clamped by the driver to the current screen size. This effectively requests a dynamically sized desktop matching the Android display. This ensures that the desktop resolution is derived from the backend instead of being forced to the default fixed size. Signed-off-by: Twaik Yont <9674930+twaik@users.noreply.github.com> --- dlls/wineandroid.drv/WineActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wineandroid.drv/WineActivity.java b/dlls/wineandroid.drv/WineActivity.java index 6488188b93a..f0bade27a28 100644 --- a/dlls/wineandroid.drv/WineActivity.java +++ b/dlls/wineandroid.drv/WineActivity.java @@ -169,7 +169,7 @@ private final void runWine( String loader, String cmdline ) { String[] cmd = { loader, "c:\\windows\\system32\\explorer.exe", - "/desktop=shell,,android", + "/desktop=shell,-1x-1,android", cmdline }; String err = wine_init( cmd ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10712