summaryrefslogtreecommitdiff
path: root/minui/graphics_drm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'minui/graphics_drm.cpp')
-rw-r--r--minui/graphics_drm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/minui/graphics_drm.cpp b/minui/graphics_drm.cpp
index e9ee9347..c17cef95 100644
--- a/minui/graphics_drm.cpp
+++ b/minui/graphics_drm.cpp
@@ -471,6 +471,10 @@ void MinuiBackendDrm::Blank(bool blank, DrmConnector index) {
drmModeAtomicFree(atomic_req);
}
+bool MinuiBackendDrm::HasMultipleConnectors() {
+ return (drm[DRM_SEC].GRSurfaceDrms[0] && drm[DRM_SEC].GRSurfaceDrms[1]);
+}
+
static drmModeCrtc* find_crtc_for_connector(int fd, drmModeRes* resources,
drmModeConnector* connector) {
// Find the encoder. If we already have one, just use it.