Commit 62fa96df authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

dwmapi: Fill qpcVBlank in DwmGetCompositionTimingInfo().

parent 09cafcc3
......@@ -235,7 +235,7 @@ static int get_display_frequency(void)
*/
HRESULT WINAPI DwmGetCompositionTimingInfo(HWND hwnd, DWM_TIMING_INFO *info)
{
LARGE_INTEGER performance_frequency;
LARGE_INTEGER performance_frequency, qpc;
static int i, display_frequency;
if (!info)
......@@ -258,6 +258,9 @@ HRESULT WINAPI DwmGetCompositionTimingInfo(HWND hwnd, DWM_TIMING_INFO *info)
QueryPerformanceFrequency(&performance_frequency);
info->qpcRefreshPeriod = performance_frequency.QuadPart / display_frequency;
QueryPerformanceCounter(&qpc);
info->qpcVBlank = (qpc.QuadPart / info->qpcRefreshPeriod) * info->qpcRefreshPeriod;
return S_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment