Patch major font rendering performance hit while zoomed

This commit is contained in:
Charles J. Cliffe 2016-03-14 19:27:34 -04:00
parent b3b933c8dd
commit cfdbcf9bc3

View File

@ -224,6 +224,13 @@ void SpectrumPanel::drawPanelContents() {
} }
for (double m = -1.0 + mhzStart, mMax = 1.0 + ((mhzStart>0)?mhzStart:-mhzStart); m <= mMax; m += mhzStep) { for (double m = -1.0 + mhzStart, mMax = 1.0 + ((mhzStart>0)?mhzStart:-mhzStart); m <= mMax; m += mhzStep) {
if (m < -1.0) {
currentMhz += mhzVisualStep;
continue;
}
if (m > 1.0) {
break;
}
label << std::fixed << currentMhz; label << std::fixed << currentMhz;
double fractpart, intpart; double fractpart, intpart;