Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robmikh committed Jun 9, 2024
1 parent 1ecf382 commit 4651719
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Win32CaptureSample/SampleWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

namespace winrt
{
using namespace Windows::Foundation;
using namespace Windows::Foundation::Metadata;
using namespace Windows::Graphics::Capture;
using namespace Windows::Graphics::DirectX;
Expand Down Expand Up @@ -59,7 +60,7 @@ SampleWindow::SampleWindow(int width, int height, std::shared_ptr<App> app)
CW_USEDEFAULT, CW_USEDEFAULT, adjustedWidth, adjustedHeight, nullptr, nullptr, instance, this));
WINRT_ASSERT(m_window);

auto isAllDisplaysPresent = winrt::ApiInformation::IsApiContractPresent(L"Windows.Foundation.UniversalApiContract", 9);
auto isAllDisplaysPresent = winrt::ApiInformation::IsApiContractPresent(WindowsUniversalContract, 9);

m_app = app;
m_windows = std::make_unique<WindowList>();
Expand Down Expand Up @@ -365,7 +366,7 @@ void SampleWindow::StopCapture()
EnableWindow(m_snapshotButton, false);
}

void SampleWindow::OnCaptureItemClosed(winrt::GraphicsCaptureItem const&, winrt::Windows::Foundation::IInspectable const&)
void SampleWindow::OnCaptureItemClosed(winrt::GraphicsCaptureItem const&, winrt::IInspectable const&)
{
StopCapture();
}

0 comments on commit 4651719

Please sign in to comment.