Ticket #7790: 7790-win7_59hz.patch
File 7790-win7_59hz.patch, 1.2 KB (added by , 14 years ago) |
---|
-
libs/libmythtv/videoout_d3d.cpp
1097 1097 { 1098 1098 int rate = GetDeviceCaps(hdc, VREFRESH); 1099 1099 if (rate > 20 && rate < 200) 1100 ret.rate = 1000000 / rate;1100 ret.rate = (rate == 59) ? 16683 : 1000000 / rate; // MS KB2006076 1101 1101 int width = GetDeviceCaps(hdc, HORZSIZE); 1102 1102 int height = GetDeviceCaps(hdc, VERTSIZE); 1103 1103 ret.size = QSize((uint)width, (uint)height); -
libs/libmythtv/openglcontext.cpp
1705 1705 { 1706 1706 int rate = GetDeviceCaps(hDC, VREFRESH); 1707 1707 if (rate > 20 && rate < 200) 1708 ret.rate = 1000000 / rate;1708 ret.rate = (rate == 59) ? 16683 : 1000000 / rate; // MS KB2006076 1709 1709 int width = GetDeviceCaps(hDC, HORZSIZE); 1710 1710 int height = GetDeviceCaps(hDC, VERTSIZE); 1711 1711 ret.size = QSize((uint)width, (uint)height);