Ticket #5039: hue-fix.diff
File hue-fix.diff, 737 bytes (added by , 16 years ago) |
---|
-
libs/libmythtv/videoout_xv.cpp
3820 3820 int port_min = xv_attribute_min[attribute]; 3821 3821 int port_max = xv_attribute_max[attribute]; 3822 3822 int range = port_max - port_min; 3823 3824 int tmpval2 = (newValue + valAdj) % 100; 3825 int tmpval3 = (int) roundf(range * 0.01f * tmpval2); 3826 int value = min(tmpval3 + port_min, port_max); 3823 3827 3824 int tmpval = (int) roundf(range * 0.01f * newValue);3825 int value = min(tmpval + port_min, port_max);3826 3827 3828 xv_set_attrib(XJ_disp, xv_port, attrName.ascii(), value); 3828 3829 3829 3830 #ifdef USING_XVMC