File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/detection/displayserver Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11#include "displayserver.h"
2- #include "detection/os/os.h"
32#include "util/windows/unicode.h"
4- #include "util/windows/registry.h"
5- #include "util/mallocHelper.h"
63#include "util/edidHelper.h"
74
85#include <dwmapi.h>
@@ -164,10 +161,11 @@ static void detectDisplays(FFDisplayServerResult* ds)
164161 preferredRefreshRate = freq .Numerator / (double ) freq .Denominator ;
165162 }
166163
164+ DISPLAYCONFIG_VIDEO_SIGNAL_INFO * signalInfo = & modes [path -> targetInfo .modeInfoIdx ].targetMode .targetVideoSignalInfo ;
167165 FFDisplayResult * display = ffdsAppendDisplay (ds ,
168166 width ,
169167 height ,
170- path -> targetInfo . refreshRate . Numerator / (double ) path -> targetInfo . refreshRate .Denominator ,
168+ signalInfo -> vSyncFreq . Numerator / (double ) signalInfo -> vSyncFreq .Denominator ,
171169 (uint32_t ) (monitorInfo -> info .rcMonitor .right - monitorInfo -> info .rcMonitor .left ),
172170 (uint32_t ) (monitorInfo -> info .rcMonitor .bottom - monitorInfo -> info .rcMonitor .top ),
173171 preferredMode .width ,
You can’t perform that action at this time.
0 commit comments