Skip to content

Commit 10f1c4e

Browse files
authored
Mouse::SetDpi was missing from DLL version (#407)
1 parent 5b0d18a commit 10f1c4e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Inc/Mouse.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,21 +154,21 @@ namespace DirectX
154154
#ifdef USING_COREWINDOW
155155
DIRECTX_TOOLKIT_API void __cdecl SetWindow(ABI::Windows::UI::Core::ICoreWindow* window);
156156
#ifdef __cplusplus_winrt
157-
DIRECTX_TOOLKIT_API void __cdecl SetWindow(Windows::UI::Core::CoreWindow^ window)
157+
DIRECTX_TOOLKIT_API inline void __cdecl SetWindow(Windows::UI::Core::CoreWindow^ window)
158158
{
159159
// See https://msdn.microsoft.com/en-us/library/hh755802.aspx
160160
SetWindow(reinterpret_cast<ABI::Windows::UI::Core::ICoreWindow*>(window));
161161
}
162162
#endif
163163
#ifdef CPPWINRT_VERSION
164-
DIRECTX_TOOLKIT_API void __cdecl SetWindow(winrt::Windows::UI::Core::CoreWindow window)
164+
DIRECTX_TOOLKIT_API inline void __cdecl SetWindow(winrt::Windows::UI::Core::CoreWindow window)
165165
{
166166
// See https://docs.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/interop-winrt-abi
167167
SetWindow(reinterpret_cast<ABI::Windows::UI::Core::ICoreWindow*>(winrt::get_abi(window)));
168168
}
169169
#endif
170170

171-
static void __cdecl SetDpi(float dpi);
171+
DIRECTX_TOOLKIT_API static void __cdecl SetDpi(float dpi);
172172
#elif defined(WM_USER)
173173
DIRECTX_TOOLKIT_API void __cdecl SetWindow(HWND window);
174174
DIRECTX_TOOLKIT_API static void __cdecl ProcessMessage(UINT message, WPARAM wParam, LPARAM lParam);

0 commit comments

Comments
 (0)