backend/drm: don't insert duplicate custom modes, fix refresh rate

This commit is contained in:
emersion 2018-12-16 11:06:46 +01:00
parent 6d4bfa3226
commit ff6c4f80b2
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 11 additions and 4 deletions

View file

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