diff --git a/modules/juce_graphics/native/juce_DirectX_windows.h b/modules/juce_graphics/native/juce_DirectX_windows.h index 2817cee08b..583bc7864b 100644 --- a/modules/juce_graphics/native/juce_DirectX_windows.h +++ b/modules/juce_graphics/native/juce_DirectX_windows.h @@ -35,28 +35,6 @@ namespace juce { -class WindowsScopedEvent -{ -public: - explicit WindowsScopedEvent (HANDLE handleIn) - : handle (handleIn) - { - } - - WindowsScopedEvent() - : WindowsScopedEvent (CreateEvent (nullptr, FALSE, FALSE, nullptr)) - { - } - - HANDLE getHandle() const noexcept - { - return handle.get(); - } - -private: - std::unique_ptr, FunctionPointerDestructor> handle; -}; - //============================================================================== /** Heap storage for a DirectWrite glyph run */ class DirectWriteGlyphRun diff --git a/modules/juce_gui_basics/native/juce_Direct2DHwndContext_windows.cpp b/modules/juce_gui_basics/native/juce_Direct2DHwndContext_windows.cpp index 47f7c9a80e..664d511b49 100644 --- a/modules/juce_gui_basics/native/juce_Direct2DHwndContext_windows.cpp +++ b/modules/juce_gui_basics/native/juce_Direct2DHwndContext_windows.cpp @@ -35,6 +35,29 @@ namespace juce { +class WindowsScopedEvent +{ +public: + explicit WindowsScopedEvent (HANDLE handleIn) + : handle (handleIn) + { + } + + WindowsScopedEvent() + : WindowsScopedEvent (CreateEvent (nullptr, FALSE, FALSE, nullptr)) + { + } + + HANDLE getHandle() const noexcept + { + return handle.get(); + } + +private: + std::unique_ptr, FunctionPointerDestructor> handle; +}; + +//============================================================================== class SwapChain { public: