mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 04:50:34 -04:00 
			
		
		
		
	Fix horizontal scale of cumulative 2d spectrum.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3037 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									06df70aec1
								
							
						
					
					
						commit
						f678edddf2
					
				| @ -1,4 +1,4 @@ | ||||
| //------------------------------------------------------------ MainWindow
 | ||||
| //------------------------------------------------------------- MainWindow
 | ||||
| #include "mainwindow.h" | ||||
| #include "ui_mainwindow.h" | ||||
| #include "devsetup.h" | ||||
|  | ||||
| @ -122,7 +122,14 @@ void CPlotter::draw(float swide[], float red[], int i0)             //draw() | ||||
|     painter1.drawPoint(i,0); | ||||
|     y2=0; | ||||
|     if(m_bCurrent) y2 = 0.4*gain*y - 15; | ||||
|     if(m_bCumulative) y2=1.5*gain*10.0*log10(jt9com_.savg[i]) - 20; | ||||
|     if(m_bCumulative) { | ||||
|       float sum=0.0; | ||||
|       int j=m_binsPerPixel*i; | ||||
|       for(int k=0; k<m_binsPerPixel; k++) { | ||||
|         sum+=jt9com_.savg[j++]; | ||||
|       } | ||||
|       y2=gain*10.0*log10(sum/m_binsPerPixel) - 20; | ||||
|     } | ||||
|     if(m_bJT9Sync) y2=3.0*gain*red[i] - 15; | ||||
|     if(strong != strong0 or i==m_w-1) { | ||||
|       painter2D.drawPolyline(LineBuf,j); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user