瀏覽代碼

Reviewed bug on `FindNearestConnectorMode()`

pull/2346/head
raysan5 3 年之前
父節點
當前提交
4f2bfc5476
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/rcore.c

+ 1
- 1
src/rcore.c 查看文件

@ -6580,7 +6580,7 @@ static int FindNearestConnectorMode(const drmModeConnector *connector, uint widt
TRACELOG(LOG_TRACE, "DISPLAY: DRM mode: %d %ux%u@%u %s", i, mode->hdisplay, mode->vdisplay, mode->vrefresh, TRACELOG(LOG_TRACE, "DISPLAY: DRM mode: %d %ux%u@%u %s", i, mode->hdisplay, mode->vdisplay, mode->vrefresh,
(mode->flags & DRM_MODE_FLAG_INTERLACE) ? "interlaced" : "progressive"); (mode->flags & DRM_MODE_FLAG_INTERLACE) ? "interlaced" : "progressive");
if ((mode->hdisplay < width) || (mode->vdisplay < height) | (mode->vrefresh < fps))
if ((mode->hdisplay < width) || (mode->vdisplay < height) || (mode->vrefresh < fps))
{ {
TRACELOG(LOG_TRACE, "DISPLAY: DRM mode is too small"); TRACELOG(LOG_TRACE, "DISPLAY: DRM mode is too small");
continue; continue;

Loading…
取消
儲存