Alexandre Julliard
064edf1df4
d2d1/tests: Skip subsequent todo tests for unsupported properties.
...
This reduces the number of printed todos in order to stay within the 32kB limit.
2022-09-15 20:55:55 +02:00
Alexandre Julliard
ff558c63ff
d2d1/tests: Adjust geometry to make tests pass on all devices.
...
Fix suggested by Zebediah Figura.
2022-09-12 17:28:23 +02:00
Nikolay Sivov
2f3738b3a6
d2d1/commandlist: Implement layer commands.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-09 15:53:27 +02:00
Nikolay Sivov
a52ba8d95a
d2d1/commandlist: Implement DrawImage() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-09 15:53:25 +02:00
Nikolay Sivov
7cfe6d8f29
d2d1/commandlist: Implement FillOpacityMask() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-05 20:13:33 +02:00
Nikolay Sivov
4f1dfdad1d
d2d1: Add parameter validation to FillOpacityMask().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-05 20:13:33 +02:00
Nikolay Sivov
2dc847b6ec
d2d1: Remove warning message for glyph run description.
...
Every DrawTextLayout() call will produce this warning,
if there is any text to draw. Description is not required to draw a run,
and is safe to ignore.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-04 19:00:06 +02:00
Nikolay Sivov
d418657e2c
d2d1/commandlist: Fix primitive blend playback.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-04 19:00:00 +02:00
Nikolay Sivov
4674e05155
d2d1: Implement setting primitive blend mode.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-04 19:00:00 +02:00
Nikolay Sivov
3d54031236
d2d1/commandlist: Update text rendering params on DrawGlyphRun().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:49 +02:00
Nikolay Sivov
9a87e7dedd
d2d1: Add a helper for DrawGlyphRun().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:49 +02:00
Nikolay Sivov
6722d3ad7f
d2d1/commandlist: Implement FillMesh() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:47 +02:00
Nikolay Sivov
da9eabd64d
d2d1/commandlist: Implement DrawBitmap() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:46 +02:00
Nikolay Sivov
40e353a6a6
d2d1/commandlist: Implement DrawGlyphRun() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:44 +02:00
Nikolay Sivov
c9d36114e6
d2d1/commandlist: Handle recording in RestoreDrawingState().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:43 +02:00
Nikolay Sivov
3aeff98f60
d2d1/commandlist: Implement SetTextRenderingParams() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:41 +02:00
Nikolay Sivov
0e9f8babaf
d2d1/commandlist: Implement FillRectangle() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:40 +02:00
Nikolay Sivov
7441cd0c11
d2d1/commandlist: Implement FillGeometry() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:38 +02:00
Nikolay Sivov
d1dafde4ed
d2d1/commandlist: Implement DrawRectangle() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:37 +02:00
Nikolay Sivov
3ec96c9b80
d2d1/commandlist: Implement DrawGeometry() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:35 +02:00
Nikolay Sivov
ffe196abd9
d2d1/commandlist: Implement DrawLine() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:33 +02:00
Nikolay Sivov
ccfdeec3a1
d2d1/commandlist: Implement Clear() command.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:32 +02:00
Nikolay Sivov
eba21e7502
d2d1/commandlist: Implement clipping commands recording.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:30 +02:00
Nikolay Sivov
94c51a83f2
d2d1/commandlist: Implement basic state recording commands.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:28 +02:00
Nikolay Sivov
fdd6a07a0b
d2d1: Allow setting command list as a target.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:27 +02:00
Nikolay Sivov
753ae1d0a5
d2d1: Add a command list object stub.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:27 +02:00
Nikolay Sivov
56b50f158d
d2d1/tests: Use test context for command list test.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-03 15:07:24 +02:00
Nikolay Sivov
ea82d4ee98
d2d1/tests: Add a missing return value test (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-22 21:13:57 +02:00
Ziqing Hui
c850336cdb
d2d1/tests: Test ID2D1BorderTransform.
...
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
2022-07-15 15:23:04 +02:00
Ziqing Hui
27b64c7519
d2d1/tests: Test ID2D1BlendTransform.
...
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
2022-07-15 15:23:04 +02:00
Ziqing Hui
60118154d0
d2d1/tests: Add tests for ID2D1OffsetTransform.
...
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
2022-07-15 15:23:04 +02:00
Ziqing Hui
ccf8c01804
d2d1/tests: Add tests for ID2D1TransformGraph.
...
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
2022-07-15 15:23:04 +02:00
Dmitry Timoshkov
3f36d7e25b
d2d1/tests: Fix compilation with clang.
...
../wine.src/dlls/d2d1/tests/d2d1.c:11078:11: error: cannot combine with previous 'type-name' declaration specifier
INT32 _int32;
^
../wine.src/dlls/d2d1/tests/d2d1.c:11078:5: warning: declaration does not declare anything [-Wmissing-declarations]
INT32 _int32;
^~~~~~~~~~~~
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-05 19:13:36 +02:00
Nikolay Sivov
7918bfc5cd
d2d1/tests: Use CRT allocation functions.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov
5284e1db83
d2d1: Implement GetRegisteredEffects().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Ziqing Hui
97abb6d2ba
d2d1/effect: Keep builtin effects in the same list as the custom once.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov
ffab990bd6
d2d1/effect: Check that "Inputs" property was specified in the description.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov
05d8283a9d
d2d1/tests: Add missing return value check (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-05 12:34:03 +02:00
Nikolay Sivov
5e714c6403
d2d1/effect: Support parsing matrix poperty values.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-04 18:04:03 +02:00
Nikolay Sivov
5f1f52cff2
d2d1/effect: Support parsing int32 property values.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-04 18:04:03 +02:00
Nikolay Sivov
618141d817
d2d1/effect: Support parsing vector4 property values.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-04 18:04:03 +02:00
Nikolay Sivov
3c2ce1039c
d2d1/effect: Support parsing vector3 property values.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-04 18:04:03 +02:00
Nikolay Sivov
258b57a1ce
d2d1/effect: Support parsing vector2 property values.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-04 18:04:03 +02:00
Nikolay Sivov
9513f8a184
d2d1/tests: Add some tests for enum property structure.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-07-01 16:08:18 +02:00
Ziqing Hui
34a701f29e
d2d1/tests: Test value size checking for custom properties.
...
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-30 12:32:54 +02:00
Ziqing Hui
5a58ea8c2a
d2d1/tests: Add tests for GetPropertyCount().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-30 12:32:54 +02:00
Ziqing Hui
3462a31bd9
d2d1/tests: Add tests for system properties attributes.
...
Signed-off-by: Ziqing Hui <zhui@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-30 12:32:54 +02:00
Nikolay Sivov
7b15245d43
d2d1/effect: Initial implementation of subproperties.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-30 12:32:52 +02:00
Zhiyi Zhang
9678d0f9f5
d2d1/tests: Fix resource leaks.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53231
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-06-30 12:32:48 +02:00
Ziqing Hui
aa7a4b7803
d2d1/effect: Add a transform graph stub.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-27 11:23:32 +02:00