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 1
1
#include "displayserver.h"
2
- #include "detection/os/os.h"
3
2
#include "util/windows/unicode.h"
4
- #include "util/windows/registry.h"
5
- #include "util/mallocHelper.h"
6
3
#include "util/edidHelper.h"
7
4
8
5
#include <dwmapi.h>
@@ -164,10 +161,11 @@ static void detectDisplays(FFDisplayServerResult* ds)
164
161
preferredRefreshRate = freq .Numerator / (double ) freq .Denominator ;
165
162
}
166
163
164
+ DISPLAYCONFIG_VIDEO_SIGNAL_INFO * signalInfo = & modes [path -> targetInfo .modeInfoIdx ].targetMode .targetVideoSignalInfo ;
167
165
FFDisplayResult * display = ffdsAppendDisplay (ds ,
168
166
width ,
169
167
height ,
170
- path -> targetInfo . refreshRate . Numerator / (double ) path -> targetInfo . refreshRate .Denominator ,
168
+ signalInfo -> vSyncFreq . Numerator / (double ) signalInfo -> vSyncFreq .Denominator ,
171
169
(uint32_t ) (monitorInfo -> info .rcMonitor .right - monitorInfo -> info .rcMonitor .left ),
172
170
(uint32_t ) (monitorInfo -> info .rcMonitor .bottom - monitorInfo -> info .rcMonitor .top ),
173
171
preferredMode .width ,
You can’t perform that action at this time.
0 commit comments