From 4e1f44c405afeb7b1114a424a9647b2b6b914d16 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Feb 2014 11:18:14 +0100 Subject: info: doc randr_get and vidmode_get MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- info/blueshift.texinfo | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/info/blueshift.texinfo b/info/blueshift.texinfo index a19d0f4..53d18a6 100644 --- a/info/blueshift.texinfo +++ b/info/blueshift.texinfo @@ -523,6 +523,18 @@ profile file. @code{load_icc} takes one argument, the pathname of the ICC profile file; the function returns a fuction that can be invoked to apply the profile. +If you want to apply your adjustments on top of the +current colour adjustments, you can use the functions +@code{randr_get} or @code{vidmode_get}. @code{randr_get} +and @code{vidmode_get} have optional two parameters, +@code{crtc} and @code{screen}, which are the CRTC of +the monitor to read from, and the screen to which the +monitor belongs, respectively. The functions return +a parameterless function that applies adjustsments +that were applied at the time of invokation of +@code{randr_get} or @code{vidmode_get} to the current +working curves. + Keep in mind that the order your call the function matters. For example, adjusting the gamma before the brightness does not -- cgit v1.2.3-70-g09d2