Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robmikh committed May 13, 2022
1 parent 5c574ea commit 175bc8e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
8 changes: 4 additions & 4 deletions Win32CaptureSample/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

namespace winrt
{
using namespace Windows::Foundation;
using namespace Windows::Graphics::Capture;
using namespace Windows::Graphics::DirectX;
using namespace Windows::Graphics::Imaging;
using namespace Windows::Storage;
using namespace Windows::Storage::Pickers;
using namespace Windows::System;
using namespace Windows::Foundation;
using namespace Windows::UI;
using namespace Windows::UI::Composition;
using namespace Windows::UI::Popups;
using namespace Windows::Graphics::Capture;
using namespace Windows::Graphics::DirectX;
using namespace Windows::Graphics::Imaging;
}

namespace util
Expand Down
4 changes: 2 additions & 2 deletions Win32CaptureSample/CaptureSnapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ namespace winrt
{
using namespace Windows;
using namespace Windows::Foundation;
using namespace Windows::System;
using namespace Windows::Foundation::Numerics;
using namespace Windows::Graphics;
using namespace Windows::Graphics::Capture;
using namespace Windows::Graphics::DirectX;
using namespace Windows::Graphics::DirectX::Direct3D11;
using namespace Windows::Foundation::Numerics;
using namespace Windows::System;
using namespace Windows::UI;
using namespace Windows::UI::Composition;
}
Expand Down
2 changes: 1 addition & 1 deletion Win32CaptureSample/SampleWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ namespace winrt
{
using namespace Windows::Foundation::Metadata;
using namespace Windows::Graphics::Capture;
using namespace Windows::Graphics::DirectX;
using namespace Windows::System;
using namespace Windows::UI;
using namespace Windows::UI::Composition;
using namespace Windows::UI::Composition::Desktop;
using namespace Windows::Graphics::DirectX;
}

namespace util
Expand Down
4 changes: 2 additions & 2 deletions Win32CaptureSample/SimpleCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
namespace winrt
{
using namespace Windows::Foundation;
using namespace Windows::System;
using namespace Windows::Foundation::Numerics;
using namespace Windows::Graphics;
using namespace Windows::Graphics::Capture;
using namespace Windows::Graphics::DirectX;
using namespace Windows::Graphics::DirectX::Direct3D11;
using namespace Windows::Foundation::Numerics;
using namespace Windows::System;
using namespace Windows::UI;
using namespace Windows::UI::Composition;
}
Expand Down
2 changes: 1 addition & 1 deletion Win32CaptureSample/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

namespace winrt
{
using namespace Windows::Storage::Pickers;
using namespace Windows::Graphics::Capture;
using namespace Windows::Storage::Pickers;
using namespace Windows::UI::Composition;
}

Expand Down
15 changes: 7 additions & 8 deletions Win32CaptureSample/pch.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
#pragma once

// Windows SDK support
#include <Unknwn.h>
#include <inspectable.h>

// Needs to come before C++/WinRT headers
#include <wil/cppwinrt.h>

// WinRT
#include <winrt/Windows.Foundation.h>
#include <winrt/Windows.Foundation.Collections.h>
#include <winrt/Windows.Foundation.Metadata.h>
#include <winrt/Windows.Graphics.Capture.h>
#include <winrt/Windows.Graphics.DirectX.h>
#include <winrt/Windows.Graphics.DirectX.Direct3d11.h>
#include <winrt/Windows.Graphics.Imaging.h>
#include <winrt/Windows.Security.Authorization.AppCapabilityAccess.h>
#include <winrt/Windows.Storage.h>
#include <winrt/Windows.Storage.Pickers.h>
#include <winrt/Windows.Storage.Streams.h>
Expand All @@ -17,14 +24,6 @@
#include <winrt/Windows.UI.Composition.h>
#include <winrt/Windows.UI.Composition.Desktop.h>
#include <winrt/Windows.UI.Popups.h>
#include <winrt/Windows.Graphics.Capture.h>
#include <winrt/Windows.Graphics.DirectX.h>
#include <winrt/Windows.Graphics.DirectX.Direct3d11.h>
#include <winrt/Windows.Graphics.Imaging.h>
#include <winrt/Windows.Security.Authorization.AppCapabilityAccess.h>

#include <windows.ui.composition.interop.h>
#include <DispatcherQueue.h>

// STL
#include <atomic>
Expand Down

0 comments on commit 175bc8e

Please sign in to comment.