From e04bbf938ce258898565274b8542684295ee6cd4 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 15 Aug 2016 12:25:47 +0300 Subject: support finding fractional vrefresh --- kms++/inc/kms++/connector.h | 2 +- kms++/inc/kms++/modedb.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'kms++/inc') diff --git a/kms++/inc/kms++/connector.h b/kms++/inc/kms++/connector.h index 6ccc959..ccd7728 100644 --- a/kms++/inc/kms++/connector.h +++ b/kms++/inc/kms++/connector.h @@ -17,7 +17,7 @@ public: Videomode get_default_mode() const; Videomode get_mode(const std::string& mode) const; - Videomode get_mode(unsigned xres, unsigned yres, unsigned refresh, bool ilace) const; + Videomode get_mode(unsigned xres, unsigned yres, float vrefresh, bool ilace) const; Crtc* get_current_crtc() const; std::vector get_possible_crtcs() const; diff --git a/kms++/inc/kms++/modedb.h b/kms++/inc/kms++/modedb.h index 43c7afc..b6447c6 100644 --- a/kms++/inc/kms++/modedb.h +++ b/kms++/inc/kms++/modedb.h @@ -10,7 +10,7 @@ struct Videomode; extern const Videomode dmt_modes[]; extern const Videomode cea_modes[]; -const Videomode& find_dmt(uint32_t width, uint32_t height, uint32_t vrefresh, bool ilace); -const Videomode& find_cea(uint32_t width, uint32_t height, uint32_t refresh, bool ilace); +const Videomode& find_dmt(uint32_t width, uint32_t height, float vrefresh, bool ilace); +const Videomode& find_cea(uint32_t width, uint32_t height, float vrefresh, bool ilace); } -- cgit v1.2.3