summaryrefslogtreecommitdiffstats
path: root/src/blueshift_vidmode_c.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-05 19:36:29 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-05 19:36:29 +0200
commit1f928c3d0a0ccf32b304db3607f71c0da1f95733 (patch)
treec0496e18d233c995bd3afb694686ac681d30bc40 /src/blueshift_vidmode_c.c
parentm doc (diff)
downloadblueshift-1f928c3d0a0ccf32b304db3607f71c0da1f95733.tar.gz
blueshift-1f928c3d0a0ccf32b304db3607f71c0da1f95733.tar.bz2
blueshift-1f928c3d0a0ccf32b304db3607f71c0da1f95733.tar.xz
remove crtc parameter from C and Cython functions for VidMode
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/blueshift_vidmode_c.c')
-rw-r--r--src/blueshift_vidmode_c.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/blueshift_vidmode_c.c b/src/blueshift_vidmode_c.c
index b6d30f8..108f8c4 100644
--- a/src/blueshift_vidmode_c.c
+++ b/src/blueshift_vidmode_c.c
@@ -89,16 +89,13 @@ int blueshift_vidmode_open(int use_screen, char* display)
/**
* Gets the current colour curves
*
- * @param use_crtc The CRTC to use
* @param r_gamma Storage location for the red colour curve
* @param g_gamma Storage location for the green colour curve
* @param b_gamma Storage location for the blue colour curve
* @return Zero on success
*/
-int blueshift_vidmode_read(int use_crtc, uint16_t* r_gamma, uint16_t* g_gamma, uint16_t* b_gamma)
+int blueshift_vidmode_read(uint16_t* r_gamma, uint16_t* g_gamma, uint16_t* b_gamma)
{
- (void) use_crtc;
-
/* Read curves */
if (XF86VidModeGetGammaRamp(connection, screen, curve_size, r_gamma, g_gamma, b_gamma) == 0)
@@ -115,16 +112,13 @@ int blueshift_vidmode_read(int use_crtc, uint16_t* r_gamma, uint16_t* g_gamma, u
/**
* Apply stage of colour curve control
*
- * @param use_crtcs Mask of CRTC:s to use
- * @param r_curve The red colour curve
- * @param g_curve The green colour curve
- * @param b_curve The blue colour curve
- * @return Zero on success
+ * @param r_curve The red colour curve
+ * @param g_curve The green colour curve
+ * @param b_curve The blue colour curve
+ * @return Zero on success
*/
-int blueshift_vidmode_apply(uint64_t use_crtcs, uint16_t* r_curve, uint16_t* g_curve, uint16_t* b_curve)
+int blueshift_vidmode_apply(uint16_t* r_curve, uint16_t* g_curve, uint16_t* b_curve)
{
- (void) use_crtcs;
-
/* Apply curves */
if (XF86VidModeSetGammaRamp(connection, screen, curve_size, r_curve, g_curve, b_curve) == 0)