From a4f9474de11efad85b47b99705f6437549e93731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 5 Oct 2018 05:51:56 +0200 Subject: [PATCH] Add a display-output flag to tell if it's graphical-based or text-only. --- src/display-output.cc | 2 +- src/display-output.hh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/display-output.cc b/src/display-output.cc index 8e1eb0f6..0aa52300 100644 --- a/src/display-output.cc +++ b/src/display-output.cc @@ -72,7 +72,7 @@ void do_register_display_output(const std::string &name, } // namespace priv display_output_base::display_output_base(const std::string &name_) - : name(name_), is_active(false), priority(-1) { + : name(name_), is_active(false), is_graphical(false), priority(-1) { priv::do_register_display_output(name, this); } diff --git a/src/display-output.hh b/src/display-output.hh index 2c8cc5a1..6c983aed 100644 --- a/src/display-output.hh +++ b/src/display-output.hh @@ -55,6 +55,7 @@ class display_output_base { public: const std::string name; bool is_active; + bool is_graphical; int priority; explicit display_output_base(const std::string &name_); @@ -82,6 +83,7 @@ class display_output_base { protected: virtual bool active() { return is_active; }; + virtual bool graphical() { return is_graphical; }; }; /*