Ticket #7790: 7790-win7_59hz.patch

File 7790-win7_59hz.patch, 1.2 KB (added by Jeff Lu <jll544@…>, 14 years ago)
  • libs/libmythtv/videoout_d3d.cpp

     
    10971097    {
    10981098        int rate = GetDeviceCaps(hdc, VREFRESH);
    10991099        if (rate > 20 && rate < 200)
    1100             ret.rate     =  1000000 / rate;
     1100            ret.rate = (rate == 59) ? 16683 : 1000000 / rate;  // MS KB2006076
    11011101        int width  = GetDeviceCaps(hdc, HORZSIZE);
    11021102        int height = GetDeviceCaps(hdc, VERTSIZE);
    11031103        ret.size   = QSize((uint)width, (uint)height);
  • libs/libmythtv/openglcontext.cpp

     
    17051705    {
    17061706        int rate = GetDeviceCaps(hDC, VREFRESH);
    17071707        if (rate > 20 && rate < 200)
    1708             ret.rate     =  1000000 / rate;
     1708            ret.rate = (rate == 59) ? 16683 : 1000000 / rate;  // MS KB2006076
    17091709        int width  = GetDeviceCaps(hDC, HORZSIZE);
    17101710        int height = GetDeviceCaps(hDC, VERTSIZE);
    17111711        ret.size   = QSize((uint)width, (uint)height);