From 0e57effd38d4566d6245d8b9f985c5af923472f3 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 26 Oct 2019 22:35:51 +0200 Subject: backend/drm: add support for custom modes Use the CVT algorithm to create a drmModeModeInfo. --- include/backend/drm/cvt.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/backend/drm/cvt.h (limited to 'include/backend') diff --git a/include/backend/drm/cvt.h b/include/backend/drm/cvt.h new file mode 100644 index 00000000..34db5384 --- /dev/null +++ b/include/backend/drm/cvt.h @@ -0,0 +1,13 @@ +#ifndef BACKEND_DRM_CVT_H +#define BACKEND_DRM_CVT_H + +#include +#include +#include +#include +#include + +void generate_cvt_mode(drmModeModeInfo *mode, int hdisplay, int vdisplay, + float vrefresh, bool reduced, bool interlaced); + +#endif -- cgit v1.2.3