Commit graph

168115 commits

Author SHA1 Message Date
Bernhard Übelacker feda122578 notepad: Use GetDesktopWindow() when main window is not yet created.
Commit 100504d2f5 introduced using GetDpiForWindow().
Unfortunately NOTEPAD_LoadSettingFromRegistry is executed when
the main window is not yet created, resulting in
having Globals.lfFont.lfHeight=0.
This is later stored in the registry in iPointSize=0.

In a fresh wine prefix there are not yet registry values created,
therefore the first run of notepad does not show this problem,
and iPointSize is saved with a sane value to the registry.

Having Globals.lfFont.lfHeight=0 manifests for example
in cups PDF prints being a single empty page.

The check of point_size for having a non-zero value should also fix
wine prefixes which have already a stored registry value of iPointSize=0.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55852
2023-11-20 22:46:44 +01:00
Alexandre Julliard a255dd1f3c winebuild: Stop generating syscall entry points. 2023-11-20 18:27:48 +01:00
Alexandre Julliard 2dda6a2894 win32u: Generate syscall entry points from the C code with asm macros. 2023-11-20 18:09:13 +01:00
Alexandre Julliard 48a5459827 ntdll: Generate syscall entry points from the C code with asm macros. 2023-11-20 18:08:27 +01:00
Alexandre Julliard 5148911b81 wusa: Remove DECLSPEC_HIDDEN usage. 2023-11-20 17:55:39 +01:00
Alexandre Julliard e040777841 explorer: Remove DECLSPEC_HIDDEN usage. 2023-11-20 17:55:23 +01:00
Alexandre Julliard 3aca599458 tools: Upgrade the config.guess/config.sub scripts. 2023-11-20 17:49:46 +01:00
Santino Mazza 4ad1474678 mlang: Fix GetStrCodePages for characters with different codepages. 2023-11-20 17:49:19 +01:00
Santino Mazza b413d4974a mlang/tests: Test GetStrCodePages with different codepages character. 2023-11-20 17:48:55 +01:00
Dmitry Timoshkov 03d616b4eb shell32: Implement IFolderView2::Items(&IID_IShellItemArray).
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-11-20 17:48:22 +01:00
Dmitry Timoshkov 3ee56808e4 shell32: Return S_OK from IFolderView2::SetViewModeAndIconSize() stub.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-11-20 17:48:22 +01:00
Dmitry Timoshkov a8e1ab6422 shell32: Improve FolderView2::GetViewModeAndIconSize() stub.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-11-20 17:48:22 +01:00
Nell Hardcastle 12f50afe9a hidclass.sys: Add DualSense Edge to device_strings. 2023-11-20 17:47:46 +01:00
Nell Hardcastle 92dcc916fd mmdevapi: Override product strings for DualSense Edge.
Enables audio device features for the DualSense Edge.
2023-11-20 17:47:44 +01:00
Nell Hardcastle 33a3726a05 winebus.sys: Identify DualSense Edge as a DualSense controller.
The DualSense Edge implements extra features (haptics and adaptive triggers)
in the same way as the DualSense.
2023-11-20 17:47:42 +01:00
Michael Stefaniuc 466c97008c quartz: Remove redudant NULL checks before CoTaskMemFree(). 2023-11-20 17:44:52 +01:00
Michael Stefaniuc 7113bef649 winegstreamer: Remove redundant NULL check before free(). 2023-11-20 17:44:52 +01:00
Marc-Aurel Zent f715f400dc ntdll: Use IOPowerSources API to fill battery info on macOS. 2023-11-20 17:44:30 +01:00
Nikolay Sivov 2dd3a20520 dxva2/tests: Skip tests if D3D9 is unusable.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-11-20 17:43:54 +01:00
Piotr Caban 4623c41100 msvcrt: Add _mbsrev tests. 2023-11-20 17:43:46 +01:00
Piotr Caban c180a902c0 msvcrt: Avoid temporary buffer allocation in _mbsrev_l. 2023-11-20 17:43:46 +01:00
Bernhard Übelacker 71b3d10f95 uxtheme: Add stub for RefreshImmersiveColorPolicyState.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55898
2023-11-20 17:43:33 +01:00
Nikolay Sivov 05892c2369 evr/tests: Skip tests if D3D9 is unusable.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-11-20 17:43:20 +01:00
Nikolay Sivov 055e2c166e evr/presenter: Handle failure to initialize D3D9.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-11-20 17:43:19 +01:00
Paul Gofman f27dd7740c windowscodecs: Enable WICPixelFormat32bppBGRA in BMP encoder. 2023-11-20 17:43:05 +01:00
Daniel Lehman e55cae42b0 msxml3/tests: Add tests for default namespace. 2023-11-20 17:42:57 +01:00
Daniel Lehman 712b33c171 msxml4/tests: Add tests for default namespace. 2023-11-20 17:42:57 +01:00
Daniel Lehman 6a7c53130f msxml6/tests: Add tests for default namespace. 2023-11-20 17:42:57 +01:00
Rémi Bernon 8ffebcf4ab evr: Set last presented sample atomically.
Fixes a race condition and crashes in Secret of Mana.

The queue critical section is held in video_presenter_sample_present
while GetCurrentImage only locks the presenter CS. Double locking is
tricky and atomic operation is appropriate to swap the sample pointer.
2023-11-20 17:40:35 +01:00
Tim Clem 7c45c7c5eb winemac.drv: Move surface-related logs to the bitblt channel.
The logs in this file are very noisy. x11drv uses the bitblt channel
for its analogous messages.
2023-11-17 19:56:10 +01:00
Jacek Caban 1bd4bcaa4a ole32/tests: Remove unused variable. 2023-11-17 19:54:48 +01:00
Paul Gofman 5415eb7c37 gdiplus: Round width and height in gdip_format_string(). 2023-11-17 19:54:39 +01:00
Bartosz Kosiorek 65f7d5ec48 msvcrt: Add _mbsspnp_l implementation. 2023-11-17 19:54:28 +01:00
Bartosz Kosiorek c94671324e msvcrt: Fix _mbsspn_l implementation. 2023-11-17 19:54:28 +01:00
Tim Clem adfb58f17d msvcrt: Pass INT_MAX as the length in implementations of the _mbscoll family.
A length of -1 has no special meaning for the mbsn*coll functions, and
since it is > INT_MAX, it will eventually trigger _invalid_parameter in
_strnicmp_l in newer versions of msvcrt.
2023-11-17 19:54:17 +01:00
Jacek Caban e3709b0c9d gdiplus: Remove unused variable. 2023-11-17 19:54:09 +01:00
Jacek Caban 93668319dd msi/tests: Initialize pathkey in test_installprops.
It could be used uninitialized on early no access return.
2023-11-17 19:54:00 +01:00
Jacek Caban 2daa8c9f95 msi: Store Context as MSIINSTALLCONTEXT in MSIPACKAGE.
Avoids casting to enum pointer in msi_locate_product call.
2023-11-17 19:53:59 +01:00
Zebediah Figura 877a072efa wined3d: Set the active texture in nvts_texdim(). 2023-11-17 19:53:51 +01:00
Zebediah Figura 8da8dc94e2 wined3d: Set the active texture in sampler_texdim().
This was probably accidentally omitted in 51e64b3fe9.

In practice, this is guaranteed to work anyway, since due to the state table
construction the equivalent misc handler, i.e. sampler(), is always guaranteed
to be called right before the fragment pipeline handler for each stage. However,
this is a subtle detail and best not to be depended on.
2023-11-17 19:53:48 +01:00
Zebediah Figura 60e4722bcf wined3d: Trigger constant update when an SRV requiring NPOT fixup is bound.
Ported from state_sampler().

This is currently relevant to the case where a d3d11 device is created with a
9.x feature level—this will have resources bound via SRVs [and will therefore
go through wined3d_context_gl_bind_shader_resources() rather than
state_sampler()] but need not support ARB_texture_non_power_of_two.

The NPOT non-requirement is explicitly called out in the d3d11 documentation,
and because we need some degree of emulation for conditional NPOT textures, we
need to hook that up for feature level 9.x d3d11 devices as well.

Looking forward, d3d 1-9 will be normalized to creating internal SRVs and
binding those through the d3d10+ path, so this will also be necessary for that
reason.
2023-11-17 19:53:45 +01:00
Zebediah Figura 831a41ee34 wined3d: Introduce a wined3d_state_get_ffp_texture() helper. 2023-11-17 19:53:45 +01:00
Paul Gofman 1a1e2d907a dnsapi: Handle IP address as DNS name in DnsQuery_UTF8(). 2023-11-17 11:16:56 +01:00
Alexandros Frantzis 7e4985212b winewayland.drv: Forward all client surface pointer events to parent.
Set an empty input region for the client area surface, so that the
compositor forwards input events to the main/parent surface instead.
This simplifies input handling, since otherwise we would need to
implement special handling of events on the client area surface
and transform them accordingly.
2023-11-17 10:56:37 +01:00
Alexandros Frantzis 4c9c991fae winewayland.drv: Set client area subsurface size.
Use the viewporter Wayland protocol to set the size of the client
area subsurface, so that it always covers the client area bounds
exactly. This may transiently lead to scaled contents.
2023-11-17 10:56:36 +01:00
Alexandros Frantzis 65a4789a7c winewayland.drv: Set client area subsurface position.
Set the position of the client area subsurface relative to its
parent surface.
2023-11-17 10:56:34 +01:00
Alexandros Frantzis 9439b3c3ee winewayland.drv: Use a client area subsurface as the Vulkan target.
Since we can't render to parts of surfaces, use a dedicated client
area subsurface as the target of Vulkan rendering.
2023-11-17 10:56:33 +01:00
Alexandros Frantzis 51dbd708b0 winewayland.drv: Implement vkDestroySurfaceKHR. 2023-11-17 10:56:32 +01:00
Alexandros Frantzis b6e9e8deda winewayland.drv: Implement vkCreateWin32SurfaceKHR.
Create Win32 VkSurfaceKHR objects which are backed by native Wayland
VkSurfaceKHR objects. For now we associate a dummy Wayland surface
with the VkSurfaceKHR.
2023-11-17 10:56:31 +01:00
Alexandros Frantzis 902465f236 winewayland.drv: Implement vkGetDeviceProcAddr and vkGetInstanceProcAddr. 2023-11-17 10:56:30 +01:00