File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/detection/displayserver Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -161,11 +161,10 @@ static void detectDisplays(FFDisplayServerResult* ds)
161
161
preferredRefreshRate = freq .Numerator / (double ) freq .Denominator ;
162
162
}
163
163
164
- DISPLAYCONFIG_VIDEO_SIGNAL_INFO * signalInfo = & modes [path -> targetInfo .modeInfoIdx ].targetMode .targetVideoSignalInfo ;
165
164
FFDisplayResult * display = ffdsAppendDisplay (ds ,
166
165
width ,
167
166
height ,
168
- signalInfo -> vSyncFreq . Numerator / (double ) signalInfo -> vSyncFreq .Denominator ,
167
+ path -> targetInfo . refreshRate . Numerator / (double ) path -> targetInfo . refreshRate .Denominator ,
169
168
(uint32_t ) (monitorInfo -> info .rcMonitor .right - monitorInfo -> info .rcMonitor .left ),
170
169
(uint32_t ) (monitorInfo -> info .rcMonitor .bottom - monitorInfo -> info .rcMonitor .top ),
171
170
preferredMode .width ,
You can’t perform that action at this time.
0 commit comments