DisplayServer: prepare for DDC/CI

This commit is contained in:
李通洲
2023-07-08 10:06:04 +08:00
parent 713a62b383
commit 55c516a14b
8 changed files with 49 additions and 24 deletions
@@ -53,7 +53,8 @@ static void parseDRM(FFDisplayServerResult* result)
0,
&name,
FF_DISPLAY_TYPE_UNKNOWN,
false
false,
0
);
}
+2 -1
View File
@@ -187,7 +187,8 @@ static void waylandOutputHandler(WaylandData* wldata, struct wl_registry* regist
rotation,
&display.name,
display.type,
false
false,
0
);
ffThreadMutexUnlock(&mutex);
+10 -5
View File
@@ -128,7 +128,8 @@ void ffdsConnectXcb(FFDisplayServerResult* result)
0,
NULL,
FF_DISPLAY_TYPE_UNKNOWN,
false
false,
0
);
ffxcb_screen_next(&iterator);
}
@@ -198,7 +199,8 @@ static bool xcbRandrHandleModeInfo(XcbRandrData* data, xcb_randr_mode_info_t* mo
rotation,
name,
FF_DISPLAY_TYPE_UNKNOWN,
primary
primary,
0
);
}
@@ -255,7 +257,8 @@ static bool xcbRandrHandleCrtc(XcbRandrData* data, xcb_randr_crtc_t crtc, FFstrb
rotation,
name,
FF_DISPLAY_TYPE_UNKNOWN,
primary
primary,
0
);
free(crtcInfoReply);
@@ -315,7 +318,8 @@ static bool xcbRandrHandleMonitor(XcbRandrData* data, xcb_randr_monitor_info_t*
0,
&name,
FF_DISPLAY_TYPE_UNKNOWN,
!!monitor->primary
!!monitor->primary,
0
);
}
@@ -379,7 +383,8 @@ static void xcbRandrHandleScreen(XcbRandrData* data, xcb_screen_t* screen)
0,
NULL,
FF_DISPLAY_TYPE_UNKNOWN,
false
false,
0
);
}
+8 -4
View File
@@ -86,7 +86,8 @@ void ffdsConnectXlib(FFDisplayServerResult* result)
0,
NULL,
FF_DISPLAY_TYPE_UNKNOWN,
false
false,
0
);
}
@@ -184,7 +185,8 @@ static bool xrandrHandleCrtc(XrandrData* data, RRCrtc crtc, bool primary)
rotation,
NULL,
FF_DISPLAY_TYPE_UNKNOWN,
primary
primary,
0
);
data->ffXRRFreeCrtcInfo(crtcInfo);
@@ -224,7 +226,8 @@ static bool xrandrHandleMonitor(XrandrData* data, XRRMonitorInfo* monitorInfo)
0,
NULL,
FF_DISPLAY_TYPE_UNKNOWN,
!!monitorInfo->primary
!!monitorInfo->primary,
0
);
}
@@ -282,7 +285,8 @@ static void xrandrHandleScreen(XrandrData* data, Screen* screen)
0,
NULL,
FF_DISPLAY_TYPE_UNKNOWN,
false
false,
0
);
}