From ff6c4f80b25d1c3960fbe050858ca44331ee1111 Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 16 Dec 2018 11:06:46 +0100 Subject: backend/drm: don't insert duplicate custom modes, fix refresh rate --- include/backend/drm/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/backend') diff --git a/include/backend/drm/util.h b/include/backend/drm/util.h index 0b55182b..e159d716 100644 --- a/include/backend/drm/util.h +++ b/include/backend/drm/util.h @@ -7,7 +7,7 @@ #include // Calculates a more accurate refresh rate (mHz) than what mode itself provides -int32_t calculate_refresh_rate(drmModeModeInfo *mode); +int32_t calculate_refresh_rate(const drmModeModeInfo *mode); // Populates the make/model/phys_{width,height} of output from the edid data void parse_edid(struct wlr_output *restrict output, size_t len, const uint8_t *data); -- cgit v1.2.3