Hi,
I just noticed this code was merged and then reverted.
On 2021-09-17 18:33, LIU Hao wrote:
在 2021-09-16 15:37, Steve Lhomme 写道:
+#undef INTERFACE
+#define INTERFACE IDCompositionSaturationEffect
+DECLARE_INTERFACE_IID_(IDCompositionSaturationEffect,
IDCompositionFilterEffect, "A08DEBDA-3258-4FA4-9F16-9174D3FE93B1")
+{
+#if defined(_MSC_VER) && defined(__cplusplus)
+ STDMETHOD(SetSaturation)(THIS_ float ratio) PURE;
+ STDMETHOD(SetSaturation)(THIS_ IDCompositionAnimation* animation)
PURE;
+#else
+ STDMETHOD(SetSaturation)(THIS_ IDCompositionAnimation* animation)
PURE;
+ STDMETHOD(SetSaturation)(THIS_ float ratio ) PURE;
+#endif
+};
I have had some discussion with Jacek on IRC. The second block here,
which declares two overloaded methods, doesn't seem to compile as C.
What is the compilation error ?
This is exactly the same that already exist in this file for
IDCompositionTranslateTransform, IDCompositionScaleTransform,
IDCompositionRotateTransform, IDCompositionSkewTransform, etc.
+/* WARNING: some of the arguments are replaced with void*, only
what's used has been kept */
+#undef INTERFACE
+#define INTERFACE IDCompositionDevice3
+DECLARE_INTERFACE_IID_(IDCompositionDevice3, IDCompositionDevice2,
"0987CB06-F916-48BF-8D35-CE7641781BD9")
+{
+ STDMETHOD(CreateGaussianBlurEffect)(THIS_
IDCompositionGaussianBlurEffect **gaussianBlurEffect) PURE;
+ STDMETHOD(CreateBrightnessEffect)(THIS_ /* TODO
IDCompositionBrightnessEffect */ void **brightnessEffect) PURE;
These `void`s look harmless, but is it better to replace them with
forward-declaraed structs which don't have to be defined themselves?
That would be a bonus, yes.
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public