Commit Graph

166 Commits

Author SHA1 Message Date
Rémi Bernon 2e1934598d mmdevapi: Support new AUDCLNT_* creation flags.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=25173
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45700
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-13 21:22:11 +02:00
Alexandre Julliard b0e2d046fc opengl32: Make wgl driver entry points WINAPI.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-23 13:33:20 +02:00
Alexandre Julliard 62807be8c9 makefiles: Explicitly import libwine where necessary.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-21 12:00:08 +02:00
Alexandre Julliard 57d5cf0345 wineandroid: Use standard dlopen() instead of the libwine wrappers.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-07 14:26:20 +02:00
Alexandre Julliard 44c9355676 wineandroid: Avoid using wine_get/set_fs().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-03 10:46:29 +02:00
Derek Lesho 6da0633087 wineandroid: Set the scan code prefix when necessary.
Signed-off-by: Derek Lesho <dlesho@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-02 22:02:56 +01:00
Andrew Eikum 227c47e7a0 mmdevapi: Return E_INVALIDARG for invalid share mode argument.
Matches Windows 10 behavior.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-27 19:16:56 +01:00
Andrew Eikum 3c1ee2f80d mmdevapi: Set data pointer to NULL on IAudioCaptureClient::GetBuffer failure.
Matches Windows 10 behavior.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-27 19:16:53 +01:00
Zhiyi Zhang 354359197b gdi32: Add D3DKMTSetVidPnSourceOwner and D3DKMTCheckVidPnExclusiveOwnership stubs.
D3DKMTSetVidPnSourceOwner needs to be implemented in the graphics drivers
because we need to maintain the VidPN source ownership information list
in the graphics drivers. For example, the graphics drivers need to release the
exclusive ownership when a new window is moved to a monitor which has been taken
exclusive ownership.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-22 23:04:27 +02:00
Alexandre Julliard 4a902de213 gdi32: Make GDI driver functions cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-06 21:47:58 +02:00
Akihiro Sagawa 1128587fd2 gdi32: Implement GetCharWidthInfo().
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-09 15:46:03 +02:00
Isira Seneviratne 31f2a182e6 wineandroid.drv: Remove unnecessary 'extends Object' statement.
Signed-off-by: Isira Seneviratne <isirasen96@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-28 18:45:47 +01:00
Isira Seneviratne f33c51bb8c wineandroid.drv: Add Override annotation to overridden methods.
Signed-off-by: Isira Seneviratne <isirasen96@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-28 18:45:43 +01:00
Andrew Eikum b51064a3d5 wineandroid.drv: Remove useless cast to self.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-26 20:25:10 +01:00
Michael Stefaniuc c0cc126d57 wineandroid.drv: Remove redundant not-NULL checks (coccinellery).
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-20 23:12:54 +01:00
Michael Stefaniuc a1c756510d wineandroid.drv: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-29 21:39:37 +01:00
Alex Henrie 6367203572 wineandroid.drv: Turn variable 'options' into a static constant.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-04 16:13:10 +01:00
Alexandre Julliard cc06703e3a wineandroid: Add a helper function to update a window surface.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-03 22:27:04 +01:00
Alexandre Julliard 357c2bb9f9 wineandroid: Specify the window scale directly in the constructor.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-03 16:45:47 +01:00
Alexandre Julliard 0f19685917 wineandroid: Generate assets checksum from the gradle build file.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-03 16:45:47 +01:00
Alexandre Julliard 4e21bb44e4 wineandroid: Enable some Java compiler warnings.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-26 16:41:47 +01:00
Alexandre Julliard 61888e0012 wineandroid: Support for setting the cursor on Android >= N.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-26 16:40:51 +01:00
Alexandre Julliard 2b8d787b17 wineandroid: Wrap Java calls to preserve %gs on x86_64.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-26 14:42:18 +01:00
Alexandre Julliard 996f7a192d wineandroid: Avoid using deprecated Build.CPU_ABI.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-26 14:40:33 +01:00
Alexandre Julliard 5b16fb9689 wineandroid: Add support for gralloc version 1.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44245
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-19 22:42:41 +01:00
Alexandre Julliard 18ac6bf41a wineandroid: Add helper functions to encapsulate gralloc functionality.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-19 22:42:41 +01:00
Alexandre Julliard dc6f39ac29 server: Use screen coordinates in the update_window_zorder request.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-27 15:16:45 +02:00
Alexandre Julliard e658c73aed wineandroid: Add support for scaling window contents based on DPI.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-23 11:11:30 +02:00
Alexandre Julliard 240edd3fa3 wineandroid: Handle sizing and mouse events in physical coordinates.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-23 11:10:49 +02:00
Alexandre Julliard 1283d9873c wineandroid: Simplify the EnumDisplayMonitors driver entry point.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-22 13:09:48 +02:00
Alexandre Julliard 3cfe3684aa wineandroid: Remove no longer needed GetDeviceCaps() driver entry point.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-22 13:09:34 +02:00
Alexandre Julliard c268c283f7 wineandroid: Use fallback implementation for screen dimensions in GetDeviceCaps().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-22 12:58:23 +02:00
Michael Stefaniuc ccf6211c0a wineandroid.drv: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 20:25:25 +02:00
Josh DuBois 998eef6eca wineandroid: Silence a noisy FIXME in ANDROID_GetKeyboardLayout.
Signed-off-by: Josh DuBois <duboisj@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-25 10:48:38 +02:00
Roderick Colenbrander 3de61a9dd9 winevulkan: Define vulkan driver interface.
Signed-off-by: Roderick Colenbrander <thunderbird2k@gmail.com>
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 12:47:16 +01:00
Alexandre Julliard 6a4fa30e4c wineandroid: Force non-zero state on ACTION_BUTTON_RELEASE to avoid duplicate events.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:57 +01:00
Alexandre Julliard e29678dae6 wineandroid: Handle additional mouse event types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 15:10:24 +01:00
Alexandre Julliard a6f85e616d wineandroid: Don't allocate a window surface for off-screen windows.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 15:18:47 +01:00
Alexandre Julliard 3474850f59 wineandroid: Add permission for accessing external storage.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-03 10:44:02 +01:00
Alexandre Julliard 5632c82c42 include: Get rid of wglext.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-11 19:49:29 +02:00
Alexandre Julliard 17dffaac7d opengl32: Get WGL function definitions from the XML files.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-10 10:06:10 +02:00
Andrew Eikum b4c0b77b03 wineandroid: Support 32-bit float audio format.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-06 21:48:49 +02:00
Andrew Eikum d2f904e07f wineandroid: Check that Android supports the format in IsFormatSupported.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-06 21:48:49 +02:00
Fabian Maurer 67756774f5 wineandroid.drv: In AudioClient_IsFormatSupported remove unneeded statement (cppcheck).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-03 21:16:17 +02:00
Andrew Eikum f5fe252cd1 wineandroid: Don't use deprecated SLDataFormat_PCM struct.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-25 23:29:11 +02:00
Andrew Eikum a0157f57cb wineandroid: Create OpenSL outputmix object globally.
This object will take multiple inputs, no need to re-create it for
every IAudioClient.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-25 23:29:10 +02:00
Alexandre Julliard d1abe86771 wineandroid: Also set WINEDLLPATH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-31 19:48:24 +02:00
Alexandre Julliard 56fbca4f44 wineandroid: Update the views z-order based on the window hierarchy.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-31 19:16:17 +02:00
Alexandre Julliard 44ee3bf85a wineandroid: Hold on to the native window until we get a new one.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 17:28:36 +02:00
Alexandre Julliard 83bed85074 wineandroid: Add a generation number to the native window to catch when old buffers are queued.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 17:28:32 +02:00
Michael Stefaniuc ba0afd26e7 wineandroid: Use EqualRect() instead of memcmp().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-07 19:48:32 +02:00
Andrew Eikum 287be7c5ee wineandroid: Add an audio driver.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 20:59:40 +02:00
Alexandre Julliard 9027b927a4 wineandroid: Support running binaries from the application directory.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 20:58:01 +02:00
Alexandre Julliard bc70768c98 wineandroid: Add networking permissions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 20:57:50 +02:00
Alexandre Julliard 5b056f61cf wineandroid: Forward the destroy window ioctl to Java even if the window was freed already.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 20:57:24 +02:00
Huw Davies 99069934f7 wineandroid: Use logical co-ords to call GdiAlphaBlend().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:38:45 +02:00
Alexandre Julliard 0a2aac8dca wineandroid: Allow putting libraries in the native library directory.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-26 15:13:35 +02:00
Alexandre Julliard 9065fd2597 wineandroid: Work around the Android N restriction on loading libhardware.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-26 15:12:44 +02:00
Alexandre Julliard ab006d0085 wineandroid: Fix handling of Caps Lock with non-alphabetic keys.
Spotted by Dmitry Timoshkov.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-26 15:12:10 +02:00
Alexandre Julliard 75cb584e28 wineandroid: Implement wglSwapIntervalEXT.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-23 09:19:15 +02:00
Alexandre Julliard f5a512498b wineandroid: Implement wglMakeContextCurrentARB.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-23 09:19:05 +02:00
Alexandre Julliard a3eda7257c wineandroid: Implement wglCreateContextAttribsARB.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-23 09:18:55 +02:00
Alexandre Julliard 01439ef590 wineandroid: Create a proper EGL window surface once we receive a surface from Java.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-22 22:50:32 +02:00
Alexandre Julliard 1f736b5f7c wineandroid: Initial version of the OpenGL driver.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-22 21:42:45 +02:00
Alexandre Julliard f39e021006 wineandroid: Also create HWND_MESSAGE windows on the Java side.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-22 20:04:43 +02:00
Alexandre Julliard cd2b41a2b4 wineandroid: Create window groups inside every window to support a client area.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-22 19:38:36 +02:00
Alexandre Julliard f77bbd45d6 wineandroid: Add infrastructure to support a separate TextureView for the window client area.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-22 19:36:54 +02:00
Alexandre Julliard 95c4516b65 wineandroid: Support creating a separate native window for OpenGL rendering in the client area.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-22 19:28:57 +02:00
Alexandre Julliard 1aa8cf0500 wineandroid: Add a stub implementation of EnumDisplaySettingsEx.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-21 19:15:11 +02:00
Alexandre Julliard 508d7a33e3 wineandroid: Add a stub implementation of ChangeDisplaySettingsEx.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-21 19:15:11 +02:00
Alexandre Julliard f254aec449 wineandroid: Store the actual screen DPI on startup.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-12 19:12:30 +02:00
Alexandre Julliard 3179a5da93 wineandroid: Start in landscape mode and don't restart on config changes.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-12 19:12:10 +02:00
Hans Leidekker 4f4ede56e9 wineandroid: Synchronize keyboard lock state.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-09 09:21:52 +02:00
Hans Leidekker 86b82b8f73 wineandroid: Implement VkKeyScanEx.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-09 09:21:15 +02:00
Hans Leidekker e545a85351 wineandroid: Implement GetKeyboardLayout.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-09 09:20:49 +02:00
Josh DuBois 0d565d0118 wineandroid: Implement MapVirtualKeyEx.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-09 09:20:20 +02:00
Josh DuBois 86534e0dd5 wineandroid: Implement GetKeyNameText.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-09 09:19:42 +02:00
Alexandre Julliard 6f4149d842 wineandroid: Implement ToUnicodeEx.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-08 16:44:57 +02:00
Alexandre Julliard 8dc11a3ab3 wineandroid: Add support for keyboard events.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-08 16:44:57 +02:00
Alexandre Julliard db742a49c9 wineandroid: Add support for mouse events.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-08 10:17:22 +02:00
Alexandre Julliard b0690b13da wineandroid: Implement SetCapture and store the capture window in the desktop process for global captures.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-08 10:08:40 +02:00
Alexandre Julliard c339d7214c wineandroid: Properly clean up windows that aren't destroyed explicitly.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-08 10:08:15 +02:00
Huw Davies 745aed5700 wineandroid: Tell git diff about java files.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-07 17:37:52 +02:00
Huw Davies eb04665281 wineandroid: The event list may have been altered by a recursive call, so restart the loop from the beginning.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-07 17:37:48 +02:00
Alexandre Julliard be285af54f wineandroid: Implement SetParent and forward it to Java.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-07 16:09:48 +02:00
Alexandre Julliard b6a00bc0eb wineandroid: Implement ShowWindow to put icons off-screen.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-07 11:27:16 +02:00
Alexandre Julliard d1b5f75946 wineandroid: Implement UpdateLayeredWindow.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-07 11:26:57 +02:00
Alexandre Julliard 52f53fe82e wineandroid: Implement SetLayeredWindowAttributes.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-07 11:26:37 +02:00
Alexandre Julliard d61bcb9a2f wineandroid: Implement SetWindowRgn.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-07 11:25:48 +02:00
Alexandre Julliard 20c627d58c wineandroid: Update the contents when we receive a new surface from Java.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-06 13:08:25 +02:00
Alexandre Julliard 7f92cbf520 wineandroid: Implement window surfaces.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-06 13:08:25 +02:00
Alexandre Julliard 1e46722c67 wineandroid: Implement LOCK/UNLOCK perform() functions on top of the buffer management calls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-06 13:08:25 +02:00
Alexandre Julliard f856e102f2 wineandroid: Forward native window buffer management calls to the desktop process.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-06 13:08:24 +02:00
Alexandre Julliard 6396f9f522 wineandroid: Load the gralloc module in all processes.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-06 13:08:24 +02:00
Alexandre Julliard e441e85db9 wineandroid: Forward native window setSwapInterval() calls to the desktop process.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 12:28:43 +02:00
Alexandre Julliard 4c1f541c13 wineandroid: Forward native window perform() calls to the desktop process.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 12:28:42 +02:00
Alexandre Julliard f69836eba9 wineandroid: Forward native window query() calls to the desktop process.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 12:26:27 +02:00
Alexandre Julliard fbc482db1d wineandroid: Allocate a native window wrapper in the client process for every window.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-05 12:21:26 +02:00
Alexandre Julliard 9a134711e6 wineandroid: Add a JNI callback to store the native window we got from the TextureView.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-02 13:37:47 +02:00
Alexandre Julliard 7124a7d90c wineandroid: Add a header for some of the Android native APIs and data structures.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-02 11:46:28 +02:00