Nikolay Sivov : d2d1/effect: Add D2D1_PROPERTY_CACHED property.
Alexandre Julliard
julliard at winehq.org
Mon Jun 27 16:12:51 CDT 2022
Module: wine
Branch: master
Commit: 9c4aea6de150c94576babba3b4d41dba8cc9f472
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9c4aea6de150c94576babba3b4d41dba8cc9f472
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun Jun 26 19:10:32 2022 +0300
d2d1/effect: Add D2D1_PROPERTY_CACHED property.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/d2d1/effect.c | 2 ++
dlls/d2d1/tests/d2d1.c | 10 +++++-----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/dlls/d2d1/effect.c b/dlls/d2d1/effect.c
index 5dc86cccb75..46e53693277 100644
--- a/dlls/d2d1/effect.c
+++ b/dlls/d2d1/effect.c
@@ -1029,6 +1029,8 @@ HRESULT d2d_effect_create(struct d2d_device_context *context, const CLSID *effec
return E_FAIL;
}
+ d2d_effect_properties_add(&object->properties, L"Cached", D2D1_PROPERTY_CACHED, D2D1_PROPERTY_TYPE_BOOL, L"false");
+
*effect = &object->ID2D1Effect_iface;
TRACE("Created effect %p.\n", *effect);
diff --git a/dlls/d2d1/tests/d2d1.c b/dlls/d2d1/tests/d2d1.c
index 7eaf3427e50..874d977f56f 100644
--- a/dlls/d2d1/tests/d2d1.c
+++ b/dlls/d2d1/tests/d2d1.c
@@ -10416,11 +10416,11 @@ static void test_effect(BOOL d3d11)
ok(IsEqualGUID(&clsid, test->clsid), "Got unexpected clsid %s, expected %s.\n",
debugstr_guid(&clsid), debugstr_guid(test->clsid));
- hr = ID2D1Effect_GetValue(effect, D2D1_PROPERTY_CACHED,
- D2D1_PROPERTY_TYPE_BOOL, (BYTE *)&cached, sizeof(cached));
- todo_wine ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
- if (hr == S_OK)
- ok(cached == FALSE, "Got unexpected cached %d.\n", cached);
+ cached = TRUE;
+ hr = ID2D1Effect_GetValue(effect, D2D1_PROPERTY_CACHED, D2D1_PROPERTY_TYPE_BOOL,
+ (BYTE *)&cached, sizeof(cached));
+ ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
+ ok(cached == FALSE, "Got unexpected cached %d.\n", cached);
hr = ID2D1Effect_GetValue(effect, D2D1_PROPERTY_PRECISION,
D2D1_PROPERTY_TYPE_ENUM, (BYTE *)&precision, sizeof(precision));
More information about the wine-cvs
mailing list