backend/drm: pass through mode picture aspect ratio

This commit is contained in:
Simon Ser 2022-09-05 16:56:47 +02:00
parent 2178573b0a
commit 0cabc83046
3 changed files with 21 additions and 0 deletions

View file

@ -9,6 +9,7 @@ struct wlr_drm_connector;
// Calculates a more accurate refresh rate (mHz) than what mode itself provides
int32_t calculate_refresh_rate(const drmModeModeInfo *mode);
enum wlr_output_mode_aspect_ratio get_picture_aspect_ratio(const drmModeModeInfo *mode);
// Populates the make/model/phys_{width,height} of output from the edid data
void parse_edid(struct wlr_drm_connector *conn, size_t len, const uint8_t *data);