diff -up mythtv-0.22.0-fixes23069/libs/libmythui/util-nvctrl.cpp.orig mythtv-0.22.0-fixes23069/libs/libmythui/util-nvctrl.cpp
old
|
new
|
|
8 | 8 | #include <string.h> |
9 | 9 | #include <ctype.h> |
10 | 10 | #include <cmath> |
| 11 | #include <sstream> |
| 12 | #include <locale> |
11 | 13 | |
12 | 14 | #include "mythxdisplay.h" |
13 | 15 | |
… |
… |
int GetNvidiaRates(t_screenrate& screenm |
211 | 213 | vfl = strtol(buf[8], NULL, 10); |
212 | 214 | hfl = strtol(buf[4], NULL, 10); |
213 | 215 | h = strtol(buf[5], NULL, 10); |
214 | | dcl = strtod(buf[0], NULL); |
| 216 | istringstream istr(buf[0]); |
| 217 | istr.imbue(locale("C")); |
| 218 | istr >> dcl; |
215 | 219 | r = (dcl * 1000000.0) / (vfl * hfl); |
216 | 220 | irate = (int) round(r * 1000.0); |
217 | 221 | key = DisplayResScreen::CalcKey(w, h, (double) id); |