# HG changeset patch # User nick # Date 1011805395 0 # Node ID bfcf2517876b784e261712fa9598eb1bf35432a7 # Parent 2d64382e8dcfb888ca19382aef111674509ce0f3 RGB independed correction for GATOS's radeon_video driver! diff -r 2d64382e8dcf -r bfcf2517876b libvo/vo_xv.c --- a/libvo/vo_xv.c Wed Jan 23 16:56:09 2002 +0000 +++ b/libvo/vo_xv.c Wed Jan 23 17:03:15 2002 +0000 @@ -167,8 +167,19 @@ else if(strcmp(attributes[i].name,"XV_HUE") == 0) port_value = vo_gamma_hue; + else + /* Note: since 22.01.2002 GATOS supports these attrs for radeons (NK) */ + if(strcmp(attributes[i].name,"XV_RED_INTENSITY") == 0) + port_value = vo_gamma_red_intensity; + else + if(strcmp(attributes[i].name,"XV_GREEN_INTENSITY") == 0) + port_value = vo_gamma_green_intensity; + else + if(strcmp(attributes[i].name,"XV_BLUE_INTENSITY") == 0) + port_value = vo_gamma_blue_intensity; else continue; - /* means that user has untouched this parameter */ + /* means that user has untouched this parameter since + NVidia driver has default == min for XV_HUE but not mid */ if(!port_value) continue; port_min = xv_min; port_max = xv_max;