MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / Resize

Method Resize

IntelPresentMon/Core/source/win/Window.cpp:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 void Window::Resize(gfx::DimensionsI clientSize)
140 {
141 pmlog_verb(v::core_window)();
142 const auto size = ComputeWindowDimensions(clientSize);
143 if (SetWindowPos(hWnd, nullptr, 0, 0, size.width, size.height, SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOMOVE) == FALSE)
144 {
145 pmlog_warn(std::format("failed to resize window {}", str::ToNarrow(GetTitle()))).hr();
146 }
147 }
148
149 gfx::DimensionsI Window::ComputeWindowDimensions(gfx::DimensionsI clientArea)
150 {

Callers 3

TEST_METHODFunction · 0.45
AddGraphMethod · 0.45

Calls 1

ToNarrowFunction · 0.85

Tested by 1

TEST_METHODFunction · 0.36