Skip to content

Instantly share code, notes, and snippets.

@andlabs
Created June 5, 2016 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andlabs/d8e41612df4cc4e8c284ce9791cd9817 to your computer and use it in GitHub Desktop.
Save andlabs/d8e41612df4cc4e8c284ce9791cd9817 to your computer and use it in GitHub Desktop.
{
typedef D2D1_SIZE_F *(ID2D1RenderTarget::*__stdcall GetSizeF)(D2D1_SIZE_F *);
GetSizeF gs;
gs = (GetSizeF) (&(rt->GetSize));
(rt->*gs)(&size);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment