summaryrefslogtreecommitdiffstats
path: root/src/blueshift_vidmode.pyx
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.pyx
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 '')
-rw-r--r--src/blueshift_vidmode.pyx33
1 files changed, 14 insertions, 19 deletions
diff --git a/src/blueshift_vidmode.pyx b/src/blueshift_vidmode.pyx
index 4133548..772befd 100644
--- a/src/blueshift_vidmode.pyx
+++ b/src/blueshift_vidmode.pyx
@@ -29,27 +29,24 @@ Start stage of colour curve control
@return Zero on error, otherwise the size of colours curves
'''
-cdef extern int blueshift_vidmode_read(int use_crtc, uint16_t* r_curve, uint16_t* g_curve, uint16_t* b_curve)
+cdef extern int blueshift_vidmode_read(uint16_t* r_curve, uint16_t* g_curve, uint16_t* b_curve)
'''
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
+@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
'''
-cdef extern int blueshift_vidmode_apply(unsigned long long int use_crtcs,
- uint16_t* r_curve, uint16_t* g_curve, uint16_t* b_curve)
+cdef extern int blueshift_vidmode_apply(uint16_t* r_curve, uint16_t* g_curve, uint16_t* b_curve)
'''
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
'''
cdef extern void blueshift_vidmode_close()
@@ -109,15 +106,14 @@ def vidmode_open(int use_screen, display):
return vidmode_gamma_size > 1
-def vidmode_read(int use_crtc):
+def vidmode_read():
'''
Gets the current colour curves
- @param use_crtc The CRTC to use
@return :(r:list<int>, g:list<int>, b:list<int>) The current red, green and blue colour curves
'''
# Read the current curves
- if not blueshift_vidmode_read(use_crtc, r_c, g_c, b_c) == 0:
+ if not blueshift_vidmode_read(r_c, g_c, b_c) == 0:
raise Exception()
# Convert to Python integer lists
r, g, b = [], [], []
@@ -128,11 +124,10 @@ def vidmode_read(int use_crtc):
return (r, g, b)
-def vidmode_apply(unsigned long long use_crtcs, r_curve, g_curve, b_curve):
+def vidmode_apply(r_curve, g_curve, b_curve):
'''
Apply stage of colour curve control
- @param use_crtcs Mask of CRTC:s to use
@param r_curve:list<int> The red colour curve
@param g_curve:list<int> The green colour curve
@param b_curve:list<int> The blue colour curve
@@ -144,7 +139,7 @@ def vidmode_apply(unsigned long long use_crtcs, r_curve, g_curve, b_curve):
g_c[i] = g_curve[i] & 0xFFFF
b_c[i] = b_curve[i] & 0xFFFF
# Apply curves
- return blueshift_vidmode_apply(use_crtcs, r_c, g_c, b_c)
+ return blueshift_vidmode_apply(r_c, g_c, b_c)
def vidmode_close():