You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had found your repository and saw you mentioning some issues with ID2D1HwndRenderTarget::GetSize in C.
I noticed a probably similar problem with GetPixelSize 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!
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 with
GetPixelSize
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!
The text was updated successfully, but these errors were encountered: