Draw correct scale on startup, with nbpp>1.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2662 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2012-10-11 22:59:36 +00:00
parent 19cd8750f1
commit 64bfbf3647
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -357,7 +357,7 @@ int CPlotter::XfromFreq(float f) //XfromFreq()
float CPlotter::FreqfromX(int x) //FreqfromX()
{
return float(1000.0 + m_fftBinWidth*x);
return float(1000.0 + x*m_binsPerPixel*m_fftBinWidth);
}
void CPlotter::SetRunningState(bool running) //SetRunningState()