Commit graph

164564 commits

Author SHA1 Message Date
Alexandre Julliard df0483aa9b start: Add a separate helper to parse command line options. 2023-05-24 15:43:54 +02:00
Alexandre Julliard 4ae7de5bf7 start: Move memory allocation into parse_title(). 2023-05-24 15:43:54 +02:00
Alexandre Julliard d203af0fd7 kernelbase: Add support for the PROC_THREAD_ATTRIBUTE_MACHINE_TYPE attribute. 2023-05-24 15:43:54 +02:00
Alexandre Julliard ca7a7abe85 kernelbase: Add a helper function to validate process/thread attributes. 2023-05-24 15:43:54 +02:00
Alexandre Julliard 4356fe0d83 ntdll: Support the PS_ATTRIBUTE_MACHINE_TYPE attribute for new processes. 2023-05-24 15:43:54 +02:00
Alexandre Julliard bce5a7910e ntdll: Don't even try to load .so libraries for a different machine.
We are not going to support multi-machine .so modules.
2023-05-24 15:43:43 +02:00
Davide Beatrici f266dc094a explorer: Fix uninitialized variable warning.
programs/explorer/desktop.c:104:16: warning: ‘hres’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  104 |         return hres;
      |                ^~~~
2023-05-23 22:36:50 +02:00
Bartosz Kosiorek f898f206f6 gdiplus: Improve performance of DrawImagePointsRect by avoid TransformMatrixPoints.
Using TransformMatrixPoints is not needed and all values could
be taken from transformation matrix:
 - ShearX from m11, m12
 - ShearY from m21, m22
 - Translation mdx, mdy

The result could be calculated by taking destination points values:
 {{0.0, 0.0}, {1.0, 0.0}, {0.0, 1.0}}

and calculating it with GdipTransformMatrixPoints function:
  dst_to_src_points[0].X = dst_to_src.matrix[4];
  dst_to_src_points[0].Y = dst_to_src.matrix[5];
  dst_to_src_points[1].X = dst_to_src.matrix[0] + dst_to_src.matrix[4];
  dst_to_src_points[1].Y = dst_to_src.matrix[1] + dst_to_src.matrix[5];
  dst_to_src_points[2].X = dst_to_src.matrix[2] + dst_to_src.matrix[4];
  dst_to_src_points[2].Y = dst_to_src.matrix[3] + dst_to_src.matrix[5];
2023-05-23 22:19:30 +02:00
Bartosz Kosiorek 382603afa7 gdiplus: Use float increment instead of calculation to impove perf.
Improves efficiency by using addition instead of float numbers
multiplication for destination points.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53947
2023-05-23 22:19:30 +02:00
Bartosz Kosiorek 9705fbd493 gdiplus: Use iterator instead calculate pointer position every time.
With previous implementation, every iteration pointer value was
calculated by taking row and column of the image.
It needs multiply calculation. With current implementation,
pointer value calculation, is replaced with iterator, which takes
next pixel data.

It improves efficiency by using addition instead of multiplication
for iterating through points data.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53947
2023-05-23 22:19:30 +02:00
Bartosz Kosiorek 66ebf9169e gdiplus: Limit calculating transformation points to resampling.
Calculating transformation points and not using it it is a waste
of CPU time. With this patch the code was moved where it is used.
It is improving performance of GdipDrawImagePointsRect when
resampling is not needed.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53947
2023-05-23 22:19:30 +02:00
Paul Gofman 71da110b46 wined3d: Use RB tree for storing lights. 2023-05-23 22:19:30 +02:00
Paul Gofman debe2bd632 wined3d: Track per light state changes in stateblock. 2023-05-23 22:19:30 +02:00
Paul Gofman 45ee728dbb wined3d: Only set changed.lights if wined3d_light_state_enable_light() changed state. 2023-05-23 22:19:30 +02:00
Jactry Zeng 3a59a4d1cd comdlg32: Set a size for toolbar buttons of the file access dialog.
The default size is too small for HiDPI, so set the same height as
the look-in combo box to it. And since in owner draw mode, the height
of combo box is calculated and updated when drawing items, this patch
set button height for toolbar from FILEDLG95_LOOKIN_DrawItem() too.
2023-05-23 22:19:30 +02:00
Jactry Zeng 80b332c050 comdlg32: Calculate button height of toolbar with DPI for item dialog. 2023-05-23 22:19:30 +02:00
Zebediah Figura bc9c8684fd qcap/tests: Remove duplicated tests for allocator identity.
We test once above that the source does not use the existing allocator, but then
implicitly release the allocator we are testing against (when the source assigns
a new allocator to the sink). As a result, these ok() statements were testing
that newly allocated allocators had a different address than the original
allocator, which of course sometimes fails.

Since we don't need to perform this test more than once anyway, just get rid of
the offending ok() statements.
2023-05-23 22:19:30 +02:00
Ziqing Hui 51c5f44bd7 winegstreamer: Implement Discontinuity for WMV decoder DMO. 2023-05-23 22:19:30 +02:00
Ziqing Hui 2a83ef077f winegstreamer: Implement GetInputStatus for WMV decoder DMO. 2023-05-23 22:19:30 +02:00
Ziqing Hui b7e4b5247b mf/tests: Test Flush for WMV decoder DMO. 2023-05-23 22:19:30 +02:00
Ziqing Hui 4f22db5b9f mf/tests: Test Discontinuity for WMV decoder DMO.
The tests show that input status is not affected by it.
2023-05-23 22:19:30 +02:00
Ziqing Hui ebd3bbc6c8 mf/tests: Test GetInputStatus for WMV decoder DMO. 2023-05-23 22:19:30 +02:00
Rémi Bernon 5a74f001ac mf/tests: Add some IV50 encoder / decoder tests. 2023-05-23 14:43:12 +02:00
Rémi Bernon 8d699e5a14 mf/tests: Add more video processor tests with RGB555 format. 2023-05-23 14:43:12 +02:00
Rémi Bernon db1e98a639 mf/tests: Move broken video processor aperture to a separate test. 2023-05-23 14:43:12 +02:00
Rémi Bernon d4cf74dabf mf/tests: Rename some variables in video processor transform tests. 2023-05-23 14:43:12 +02:00
Rémi Bernon cb3a2637e4 mf/tests: Simplify video processor expected input types checks.
And fix W11 results.
2023-05-23 14:43:12 +02:00
Rémi Bernon c0877844e7 windows.gaming.input: Query IGameController interface in TryGetFactoryControllerFromGameController. 2023-05-23 14:43:12 +02:00
Rémi Bernon eab7b95bab dinput/tests: Test that FromGameController also works with IRawGameController. 2023-05-23 14:43:12 +02:00
Nikolay Sivov df7e680cd2 d2d1: Create GDI-compatible swapchain only for corresponding target usage. 2023-05-23 14:43:12 +02:00
Nikolay Sivov 6526de5c5a d2d1: Improve GetDC()/ReleaseDC() handling on render targets. 2023-05-23 14:43:12 +02:00
Nikolay Sivov 981db8313f d2d1: Create GDI-compatible target bitmap for GDI-compatible target usage. 2023-05-23 14:43:12 +02:00
Nikolay Sivov 612020f952 d2d1/tests: Add some more tests for ID2D1GdiInteropRenderTarget. 2023-05-23 14:43:12 +02:00
Nikolay Sivov ae43a87d01 d2d1: Reject D2D1_ALPHA_MODE_STRAIGHT alpha mode for HWND targets. 2023-05-23 14:43:12 +02:00
Nikolay Sivov 02919e4298 d2d1/tests: Use test context for more tests. 2023-05-23 14:43:12 +02:00
Nikolay Sivov df50411fac d2d1: Implement IsSupported() for DC target. 2023-05-23 14:43:12 +02:00
Davide Beatrici f5baa375c8 winepulse: Implement is_format_supported in unixlib. 2023-05-23 14:43:12 +02:00
Davide Beatrici 2127a8a0d7 wineoss: Implement get_device_period in unixlib. 2023-05-23 14:43:12 +02:00
Davide Beatrici d6728615c9 winecoreaudio: Implement get_device_period in unixlib. 2023-05-23 14:43:12 +02:00
Davide Beatrici 1adee1bce4 winealsa: Implement get_device_period in unixlib. 2023-05-23 14:43:12 +02:00
Anton Baskanov 64cdecc632 dsound: Avoid division by zero when calculating Doppler shift. 2023-05-23 14:43:12 +02:00
Anton Baskanov feaaa5bcc3 dsound: Change the speed of sound to 360. 2023-05-23 14:43:12 +02:00
Anton Baskanov 24fa177c00 dsound: Enable Doppler shift. 2023-05-23 14:43:12 +02:00
Anton Baskanov 3c349125ea dsound/tests: Add tests for Doppler shift. 2023-05-23 14:43:12 +02:00
Anton Baskanov ef275facac dsound: Store the frequency of 3D buffers separately. 2023-05-23 14:43:12 +02:00
Alexandre Julliard 0433db1eb1 ntdll: Add a helper function to map the main exe module. 2023-05-23 14:43:11 +02:00
Alexandre Julliard ebc1b09915 ntdll: Support the machine extended parameter in NtMapViewOfSectionEx(). 2023-05-23 13:24:32 +02:00
Alexandre Julliard af01944a8c ntdll: Use STATUS_NOT_SUPPORTED for internal machine mismatch errors.
It corresponds to what NtMapViewOfSectionEx() returns with an
explicitly specified machine.
2023-05-23 11:13:25 +02:00
Alexandre Julliard 685f1b6b05 ntdll: Catch MEM_EXTENDED_PARAMETER duplicates for all types. 2023-05-23 10:35:55 +02:00
Piotr Caban d225fb8e71 wineps: Fix download font escapement.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54956
2023-05-23 09:28:43 +02:00