output: add gammaSize query to output

This commit is contained in:
Vaxry 2024-06-22 17:40:21 +02:00
parent 03ed93e8b5
commit edbec62fbd
2 changed files with 10 additions and 5 deletions

View file

@ -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<Hyprutils::Memory::CSharedPointer<SOutputMode>> modes;

View file

@ -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<uint16_t>& lut) {
}
void Aquamarine::COutputState::setMode(Hyprutils::Memory::CSharedPointer<SOutputMode> mode) {
internalState.mode = mode;
internalState.mode = mode;
internalState.customMode = nullptr;
internalState.committed |= AQ_OUTPUT_STATE_MODE;
}