Skip to content

Commit

Permalink
Add CREATE_WAITABLE_TIMER_HIGH_RESOLUTION define to avoid compile err…
Browse files Browse the repository at this point in the history
…ors for low system versions
  • Loading branch information
ggqshr committed Mar 22, 2023
1 parent c820f0a commit f267b76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/windows/display_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ using namespace std::literals;
}
namespace platf::dxgi {
namespace bp = boost::process;
// Avoid compilation errors for low system versions
#ifndef CREATE_WAITABLE_TIMER_HIGH_RESOLUTION
#define CREATE_WAITABLE_TIMER_HIGH_RESOLUTION 0x00000002
#endif

capture_e duplication_t::next_frame(DXGI_OUTDUPL_FRAME_INFO &frame_info, std::chrono::milliseconds timeout, resource_t::pointer *res_p) {
auto capture_status = release_frame();
Expand Down

0 comments on commit f267b76

Please sign in to comment.