From 42bc208e6b0a35c68e9bb156c8d463d1a9a946b9 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 3 Oct 2015 17:54:37 +0300 Subject: Connector: store current encoder instead of crtc Also fixes a crash when there is no current encoder --- libkms++/connector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libkms++/connector.h') diff --git a/libkms++/connector.h b/libkms++/connector.h index 56ac315..8ce6cda 100644 --- a/libkms++/connector.h +++ b/libkms++/connector.h @@ -32,7 +32,7 @@ public: Videomode get_mode(const std::string& mode) const; - Crtc* get_current_crtc() const { return m_current_crtc; } + Crtc* get_current_crtc() const; std::vector get_possible_crtcs() const; bool connected() const; @@ -48,7 +48,7 @@ private: std::string m_fullname; - Crtc* m_current_crtc; + Encoder* m_current_encoder; Crtc* m_saved_crtc; }; -- cgit v1.2.3