mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
WinRT: made SDL_GetWindowWMInfo return window data in a slightly easier-to-use format
Having the window pointer available as a WinRT IInspectable should make it a bit easier to use in conjunction with WRL-based weak references.
This commit is contained in:
@@ -57,7 +57,7 @@ struct SDL_SysWMinfo;
|
||||
#endif
|
||||
|
||||
#if defined(SDL_VIDEO_DRIVER_WINRT)
|
||||
#include <Unknwn.h>
|
||||
#include <Inspectable.h>
|
||||
#endif
|
||||
|
||||
/* This is the structure for custom window manager events */
|
||||
@@ -177,7 +177,7 @@ struct SDL_SysWMinfo
|
||||
#if defined(SDL_VIDEO_DRIVER_WINRT)
|
||||
struct
|
||||
{
|
||||
IUnknown * window; /**< The WinRT CoreWindow */
|
||||
IInspectable * window; /**< The WinRT CoreWindow */
|
||||
} winrt;
|
||||
#endif
|
||||
#if defined(SDL_VIDEO_DRIVER_X11)
|
||||
|
||||
Reference in New Issue
Block a user