diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/drm/cvt.h | 13 | ||||
-rw-r--r-- | include/wlr/backend/drm.h | 3 |
2 files changed, 15 insertions, 1 deletions
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 <stdbool.h> +#include <stddef.h> +#include <stdint.h> +#include <stdio.h> +#include <xf86drmMode.h> + +void generate_cvt_mode(drmModeModeInfo *mode, int hdisplay, int vdisplay, + float vrefresh, bool reduced, bool interlaced); + +#endif diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h index e4b5e2d1..c1380323 100644 --- a/include/wlr/backend/drm.h +++ b/include/wlr/backend/drm.h @@ -32,6 +32,7 @@ bool wlr_output_is_drm(struct wlr_output *output); * Add mode to the list of available modes */ typedef struct _drmModeModeInfo drmModeModeInfo; -bool wlr_drm_connector_add_mode(struct wlr_output *output, const drmModeModeInfo *mode); +struct wlr_output_mode *wlr_drm_connector_add_mode(struct wlr_output *output, + const drmModeModeInfo *mode); #endif |