mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-12-22 17:09:48 +01:00
output: add gammaSize query to output
This commit is contained in:
parent
03ed93e8b5
commit
edbec62fbd
2 changed files with 10 additions and 5 deletions
|
@ -79,7 +79,7 @@ namespace Aquamarine {
|
||||||
private:
|
private:
|
||||||
SInternalState internalState;
|
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 IOutput;
|
||||||
friend class CWaylandOutput;
|
friend class CWaylandOutput;
|
||||||
|
@ -99,12 +99,13 @@ namespace Aquamarine {
|
||||||
virtual void moveCursor(const Hyprutils::Math::Vector2D& coord); // includes the hotspot
|
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 Hyprutils::Math::Vector2D maxCursorSize(); // -1, -1 means no limit, 0, 0 means error
|
||||||
virtual void scheduleFrame();
|
virtual void scheduleFrame();
|
||||||
|
virtual size_t getGammaSize();
|
||||||
|
|
||||||
std::string name, description, make, model, serial;
|
std::string name, description, make, model, serial;
|
||||||
Hyprutils::Math::Vector2D physicalSize;
|
Hyprutils::Math::Vector2D physicalSize;
|
||||||
bool enabled = false;
|
bool enabled = false;
|
||||||
bool nonDesktop = false;
|
bool nonDesktop = false;
|
||||||
eSubpixelMode subpixel = AQ_SUBPIXEL_NONE;
|
eSubpixelMode subpixel = AQ_SUBPIXEL_NONE;
|
||||||
|
|
||||||
//
|
//
|
||||||
std::vector<Hyprutils::Memory::CSharedPointer<SOutputMode>> modes;
|
std::vector<Hyprutils::Memory::CSharedPointer<SOutputMode>> modes;
|
||||||
|
|
|
@ -27,6 +27,10 @@ Hyprutils::Math::Vector2D Aquamarine::IOutput::maxCursorSize() {
|
||||||
return {}; // error
|
return {}; // error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t Aquamarine::IOutput::getGammaSize() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
const Aquamarine::COutputState::SInternalState& Aquamarine::COutputState::state() {
|
const Aquamarine::COutputState::SInternalState& Aquamarine::COutputState::state() {
|
||||||
return internalState;
|
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) {
|
void Aquamarine::COutputState::setMode(Hyprutils::Memory::CSharedPointer<SOutputMode> mode) {
|
||||||
internalState.mode = mode;
|
internalState.mode = mode;
|
||||||
internalState.customMode = nullptr;
|
internalState.customMode = nullptr;
|
||||||
internalState.committed |= AQ_OUTPUT_STATE_MODE;
|
internalState.committed |= AQ_OUTPUT_STATE_MODE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue