aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-07 22:45:03 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-07 22:45:03 +0200
commit9f6015dbc695521fbb5d242666ec67793264e56c (patch)
treeb4cf178df9b2959063e3b3f5f4c03146adb9a226 /src
parentdraw gamma squares (diff)
downloadcrt-calibrator-9f6015dbc695521fbb5d242666ec67793264e56c.tar.gz
crt-calibrator-9f6015dbc695521fbb5d242666ec67793264e56c.tar.bz2
crt-calibrator-9f6015dbc695521fbb5d242666ec67793264e56c.tar.xz
doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/calibrator.c5
-rw-r--r--src/calibrator.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/src/calibrator.c b/src/calibrator.c
index a0dcb3a..38987d3 100644
--- a/src/calibrator.c
+++ b/src/calibrator.c
@@ -187,6 +187,11 @@ int draw_id(void)
}
+/**
+ * Draw squares used as reference when tweeking the gamma correction
+ *
+ * @return Zero on success, -1 on error
+ */
int draw_gamma(void)
{
size_t f, x, y, fn = fb_count();
diff --git a/src/calibrator.h b/src/calibrator.h
index 1db7a3b..d953efd 100644
--- a/src/calibrator.h
+++ b/src/calibrator.h
@@ -63,6 +63,13 @@ int gamma_digit(drm_crtc_t* restrict crtc, int colour, size_t value);
*/
int draw_id(void);
+/**
+ * Draw squares used as reference when tweeking the gamma correction
+ *
+ * @return Zero on success, -1 on error
+ */
+int draw_gamma(void);
+
#endif