Display (Linux): fix width being detected as height when using libdrm

This commit is contained in:
Carter Li
2024-03-07 14:37:44 +08:00
parent 3185299214
commit 01862ebc04
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -5,6 +5,7 @@ Bugfixes:
* Fix truncated texts in `--help format` (#745)
* Fix old vulkan-header library compatibility (#748)
* Fix possible segfaults in `--help *-format` (#749)
* Fix invalid resolution detection when using libdrm (Linux, Display)
# 2.8.7
+2 -2
View File
@@ -250,8 +250,8 @@ static const char* drmConnectLibdrm(FFDisplayServerResult* result)
drmModeCrtc* crtc = ffdrmModeGetCrtc(fd, encoder->crtc_id);
if (crtc)
{
width = crtc->mode.vdisplay;
height = crtc->mode.hdisplay;
width = crtc->mode.hdisplay;
height = crtc->mode.vdisplay;
refreshRate = crtc->mode.vrefresh;
if (refreshRate == 0)
{