Ticket #5039: hue-fix.diff

File hue-fix.diff, 737 bytes (added by anonymous, 16 years ago)
  • libs/libmythtv/videoout_xv.cpp

     
    38203820    int port_min = xv_attribute_min[attribute];
    38213821    int port_max = xv_attribute_max[attribute];
    38223822    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);
    38233827   
    3824     int tmpval = (int) roundf(range * 0.01f * newValue);
    3825     int value   = min(tmpval + port_min, port_max);
    3826 
    38273828    xv_set_attrib(XJ_disp, xv_port, attrName.ascii(), value);
    38283829
    38293830#ifdef USING_XVMC