From edbec62fbd471d5bae108adaf6bf340e02b54c1e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 22 Jun 2024 17:40:21 +0200 Subject: [PATCH] output: add gammaSize query to output --- include/aquamarine/output/Output.hpp | 9 +++++---- src/output/Output.cpp | 6 +++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/include/aquamarine/output/Output.hpp b/include/aquamarine/output/Output.hpp index 69603d5..e2a4b20 100644 --- a/include/aquamarine/output/Output.hpp +++ b/include/aquamarine/output/Output.hpp @@ -79,7 +79,7 @@ namespace Aquamarine { private: SInternalState internalState; - void onCommit(); // clears a few props like damage and committed. + void onCommit(); // clears a few props like damage and committed. friend class IOutput; friend class CWaylandOutput; @@ -99,12 +99,13 @@ namespace Aquamarine { virtual void moveCursor(const Hyprutils::Math::Vector2D& coord); // includes the hotspot virtual Hyprutils::Math::Vector2D maxCursorSize(); // -1, -1 means no limit, 0, 0 means error virtual void scheduleFrame(); + virtual size_t getGammaSize(); std::string name, description, make, model, serial; Hyprutils::Math::Vector2D physicalSize; - bool enabled = false; - bool nonDesktop = false; - eSubpixelMode subpixel = AQ_SUBPIXEL_NONE; + bool enabled = false; + bool nonDesktop = false; + eSubpixelMode subpixel = AQ_SUBPIXEL_NONE; // std::vector> modes; diff --git a/src/output/Output.cpp b/src/output/Output.cpp index f81ee1c..3cb86ed 100644 --- a/src/output/Output.cpp +++ b/src/output/Output.cpp @@ -27,6 +27,10 @@ Hyprutils::Math::Vector2D Aquamarine::IOutput::maxCursorSize() { return {}; // error } +size_t Aquamarine::IOutput::getGammaSize() { + return 0; +} + const Aquamarine::COutputState::SInternalState& Aquamarine::COutputState::state() { return internalState; } @@ -62,7 +66,7 @@ void Aquamarine::COutputState::setGammaLut(const std::vector& lut) { } void Aquamarine::COutputState::setMode(Hyprutils::Memory::CSharedPointer mode) { - internalState.mode = mode; + internalState.mode = mode; internalState.customMode = nullptr; internalState.committed |= AQ_OUTPUT_STATE_MODE; }