aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2018-06-28 12:35:55 +0200
committerGuido Günther <agx@sigxcpu.org>2018-07-07 14:51:39 +0200
commit8d72090afef998f96f243ac83e23b1bdc30667d1 (patch)
tree721adbae171b2c9bf5c6bec41be84c1448f040a6 /include/backend
parent159835de249acf9a87b2e75b97db6c5fab0a600b (diff)
drm: Allow to add additional modes
This allows to add additional modes to the list of available video modes using VESA Coordinated Video Timing information. Closes #1080
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/drm/drm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index 5d6ff231..416507ea 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -143,5 +143,9 @@ void restore_drm_outputs(struct wlr_drm_backend *drm);
void scan_drm_connectors(struct wlr_drm_backend *state);
int handle_drm_event(int fd, uint32_t mask, void *data);
void enable_drm_connector(struct wlr_output *output, bool enable);
+/**
+ * Add mode to the list of available modes
+ */
+bool wlr_drm_connector_add_mode(struct wlr_output *output, const drmModeModeInfo *mode);
#endif