Ignore:
Timestamp:
11/03/07 23:59:53 (6 years ago)
Author:
sam
Message:
  • Add cucul_get_dither_brightness(), _gamma() and _contrast(). There is no reason to keep a copy of them in the calling program.
  • Deprecate cucul_set_dither_invert(). Inverting a dither's colours is now done by setting a negative gamma value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/legacy.c

    r1788 r1870  
    6464 
    6565/* 
     66 * Functions from dither.c 
     67 */ 
     68int cucul_set_dither_invert(cucul_dither_t *d, int value) 
     69{ 
     70    float gamma = cucul_get_dither_gamma(d); 
     71 
     72    if(gamma * (value ? -1 : 1) < 0) 
     73        cucul_set_dither_gamma(d, -gamma); 
     74 
     75    return 0; 
     76} 
     77 
     78/* 
    6679 * Functions from import.c 
    6780 */ 
Note: See TracChangeset for help on using the changeset viewer.