diff options
author | emersion <contact@emersion.fr> | 2018-12-16 18:23:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-16 18:23:36 +0100 |
commit | c4c1d63a0c0d7315a1a4468d62d883371ba3ec4e (patch) | |
tree | e9dca74205246bf27e88f4f8774d94188a0e3916 /include/backend | |
parent | 6d4bfa3226123e958ff2bdc4f226489cba49f84d (diff) | |
parent | ff6c4f80b25d1c3960fbe050858ca44331ee1111 (diff) |
Merge pull request #1435 from emersion/duplicate-custom-modes
backend/drm: don't insert duplicate custom modes, fix refresh rate
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/drm/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <xf86drmMode.h> // 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); |