Open jacoblusk opened 2 years ago
I know this is ancient but just to add my 2 cents... I independently discovered that changing the definition of ID2D1HwndRenderTarget_GetSize to add a pointer to the size as the 2nd argument, worked! So there is no longer any need for any cpp files at all! Most likely any other function with a similar problem will have a similar solution. But it's sad that microsoft decided to deprecate and then remove these C accessible functions to it will only work with an old SDK.
Hello,
I had found your repository and saw you mentioning some issues with
ID2D1HwndRenderTarget::GetSize
in C. I noticed a probably similar problem withGetPixelSize
and I wrote this to fix it, basically instead of returning the size, you should be passing a out pointer as the 2nd argument.I ran into this problem when I was working with GCC, I haven't tried it on MSVC yet though so if you are let me know if it works!