mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-27 07:58:59 -04:00
backend/drm: use libdisplay-info for CVT mode generation
This commit is contained in:
parent
35da997001
commit
a160304289
6 changed files with 38 additions and 285 deletions
|
|
@ -21,7 +21,6 @@
|
|||
#include <wlr/util/log.h>
|
||||
#include <xf86drm.h>
|
||||
#include <xf86drmMode.h>
|
||||
#include "backend/drm/cvt.h"
|
||||
#include "backend/drm/drm.h"
|
||||
#include "backend/drm/iface.h"
|
||||
#include "backend/drm/util.h"
|
||||
|
|
@ -465,7 +464,7 @@ static void drm_connector_state_init(struct wlr_drm_connector_state *state,
|
|||
case WLR_OUTPUT_STATE_MODE_CUSTOM:
|
||||
generate_cvt_mode(&state->mode, base->custom_mode.width,
|
||||
base->custom_mode.height,
|
||||
(float)base->custom_mode.refresh / 1000, false, false);
|
||||
(float)base->custom_mode.refresh / 1000);
|
||||
state->mode.type = DRM_MODE_TYPE_USERDEF;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue