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
This commit is contained in:
Guido Günther 2018-06-28 12:35:55 +02:00
parent 159835de24
commit 8d72090afe
2 changed files with 31 additions and 0 deletions

View file

@ -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