mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-09 09:24:59 -04:00
Save and restore fQSO.
Decode mjultiple signals inside the "Tol" green bar, rather than just the one producing highest value of sync. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2701 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+4
-4
@@ -323,10 +323,10 @@ void CPlotter::MakeFrequencyStrs() //MakeFrequencyStrs
|
||||
|
||||
int CPlotter::XfromFreq(float f) //XfromFreq()
|
||||
{
|
||||
float w = m_WaterfallPixmap.width();
|
||||
int x = (int) w * (f - m_StartFreq)/m_fSpan;
|
||||
// float w = m_WaterfallPixmap.width();
|
||||
int x = (int) m_w * (f - m_StartFreq)/m_fSpan;
|
||||
if(x<0 ) return 0;
|
||||
if(x>(int)w) return m_WaterfallPixmap.width();
|
||||
if(x>m_w) return m_w;
|
||||
return x;
|
||||
}
|
||||
|
||||
@@ -397,7 +397,7 @@ int CPlotter::binsPerPixel() // get nbpp
|
||||
void CPlotter::setFQSO(int x, bool bf) //setFQSO()
|
||||
{
|
||||
if(bf) {
|
||||
m_fQSO=x; // x is freq in kHz
|
||||
m_fQSO=x; // x is freq in Hz
|
||||
m_xClick=XfromFreq(m_fQSO);
|
||||
} else {
|
||||
if(x<0) x=0; // x is pixel number
|
||||
|
||||
Reference in New Issue
Block a user