瀏覽代碼

fix: In certain cases the connector status is reported UNKNOWN, should be conisdered as CONNECTED (#4305)

Co-authored-by: Michal Jaskolski <michal.jaskolski@hexagon.com>
pull/4306/head
Michał Jaskólski 3 月之前
committed by GitHub
父節點
當前提交
42022c3531
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. +4
    -2
      src/platforms/rcore_drm.c

+ 4
- 2
src/platforms/rcore_drm.c 查看文件

@ -763,8 +763,10 @@ int InitPlatform(void)
drmModeConnector *con = drmModeGetConnector(platform.fd, res->connectors[i]);
TRACELOG(LOG_TRACE, "DISPLAY: Connector modes detected: %i", con->count_modes);
if ((con->connection == DRM_MODE_CONNECTED) && (con->encoder_id))
// In certain cases the status of the conneciton is reported as UKNOWN, but it is still connected.
// This might be a hardware or software limitation like on Raspberry Pi Zero with composite output.
if (((con->connection == DRM_MODE_CONNECTED) || (con->connection == DRM_MODE_UNKNOWNCONNECTION)) && (con->encoder_id))
{
TRACELOG(LOG_TRACE, "DISPLAY: DRM mode connected");
platform.connector = con;

Loading…
取消
儲存