Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/x11_output.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 55 | { | |||
---|---|---|---|---|---|
56 | return m_refreshRate; | 56 | return m_refreshRate; | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | void X11Output::setRefreshRate(int set) | 59 | void X11Output::setRefreshRate(int set) | ||
60 | { | 60 | { | ||
61 | m_refreshRate = set; | 61 | m_refreshRate = set; | ||
62 | } | 62 | } | ||
63 | 63 | | |||
64 | int X11Output::gammaRampSize() const | ||||
65 | { | ||||
66 | return m_gammaRampSize; | ||||
67 | } | ||||
68 | | ||||
69 | bool X11Output::setGammaRamp(const GammaRamp &gamma) | ||||
70 | { | ||||
71 | if (m_crtc == XCB_NONE) { | ||||
72 | return false; | ||||
73 | } | ||||
74 | | ||||
75 | xcb_randr_set_crtc_gamma(connection(), m_crtc, gamma.size(), gamma.red(), | ||||
76 | gamma.green(), gamma.blue()); | ||||
77 | | ||||
78 | return true; | ||||
79 | } | ||||
80 | | ||||
81 | void X11Output::setCrtc(xcb_randr_crtc_t crtc) | ||||
82 | { | ||||
83 | m_crtc = crtc; | ||||
84 | } | ||||
85 | | ||||
86 | void X11Output::setGammaRampSize(int size) | ||||
87 | { | ||||
88 | m_gammaRampSize = size; | ||||
89 | } | ||||
90 | | ||||
64 | } | 91 | } |