Skip to content

Commit 7c4d727

Browse files
committed
Fixed wrong identation
1 parent fe43d58 commit 7c4d727

9 files changed

+41
-48
lines changed

Settings.h

+15-19
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
//////////////////////////////////////////////////////////////////////
22
// Settings and configurations
33

4-
#define MAXSPEC 72
5-
#define MAXWAVE 147
6-
#define NUM_BUFFERS 4
7-
8-
#define MAXSQRT 64516 // =254²
9-
#define MAXLINE MAXSPEC+3
10-
#define LDEPTH 20
11-
12-
#define PI 3.14159265359
13-
14-
#define _SPECBKG RGB(0x3f,0x3f,0x3f) //0x3f
15-
#define _SPECBAR RGB(255,255,0)
16-
#define _SPECPCK RGB(255,0,0)
17-
#define _SPECBLK RGB(0,0,0)
18-
#define GAIN 1300
19-
20-
#define _WAVEBKG RGB(63,63,63)
21-
#define _WAVEDAT RGB(255,255,255)
22-
#define _WAVENUL RGB(255,0,0)
4+
#define MAXSPEC 72
5+
#define MAXWAVE 147
6+
#define NUM_BUFFERS 4
237

8+
#define MAXSQRT 64516 // =254²
9+
#define MAXLINE MAXSPEC+3
10+
#define LDEPTH 20
2411

12+
#define PI 3.14159265359
2513

14+
#define _SPECBKG RGB(0x3f,0x3f,0x3f) //0x3f
15+
#define _SPECBAR RGB(255,255,0)
16+
#define _SPECPCK RGB(255,0,0)
17+
#define _SPECBLK RGB(0,0,0)
18+
#define GAIN 1300
2619

20+
#define _WAVEBKG RGB(63,63,63)
21+
#define _WAVEDAT RGB(255,255,255)
22+
#define _WAVENUL RGB(255,0,0)

Spec.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,4 @@ BOOL CSpecApp::InitInstance()
220220
FreeDirectSound();
221221

222222
return FALSE;
223-
}
223+
}

SpecDlg.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,4 +272,4 @@ void CSpecDlg::OnMove(int x, int y)
272272
CDialog::OnMove(x, y);
273273

274274
if (gPlaying == 1) gWaveWin.OnPaint();
275-
}
275+
}

SpecDlg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ class CSpecDlg : public CDialog
4545
afx_msg void OnBnClickedRbTest();
4646
afx_msg void OnMove(int x, int y);
4747
afx_msg void OnBnClickedStartstop();
48-
};
48+
};

SpecWin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,4 +374,4 @@ void CSpecWin::OnDestroy()
374374
delete m_SpecWinDC;
375375
m_SpecWinDC = NULL;
376376
}
377-
}
377+
}

SpecWin.h

+19-19
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ class CSpecWin : public CStatic
1010
{
1111
friend class CSpecDlg;
1212
public:
13-
int m_Spec[MAXSPEC + 1];
14-
int m_BarDly;
15-
int m_PckDly;
16-
BOOL m_3dView;
13+
int m_Spec[MAXSPEC + 1];
14+
int m_BarDly;
15+
int m_PckDly;
16+
BOOL m_3dView;
1717
protected:
18-
CDC* m_SpecWinDC;
19-
CRect m_rect;
20-
21-
short int m_STAB[(MAXSPEC + 1)*MAXWAVE];
22-
PBYTE m_SQRTAB;
23-
HGLOBAL m_hSTable;
24-
HGLOBAL m_hSQTable;
25-
CPoint m_SpecLine[LDEPTH][MAXLINE];
26-
int m_oSpec[MAXSPEC + 1];
27-
int m_PckY[MAXSPEC + 1];
28-
int m_PckT[MAXSPEC + 1];
29-
int m_cSpecY[256];
30-
int m_cSpecSY[256];
31-
int BARWITH;
32-
int BARSTART;
18+
CDC* m_SpecWinDC;
19+
CRect m_rect;
20+
21+
short int m_STAB[(MAXSPEC + 1)*MAXWAVE];
22+
PBYTE m_SQRTAB;
23+
HGLOBAL m_hSTable;
24+
HGLOBAL m_hSQTable;
25+
CPoint m_SpecLine[LDEPTH][MAXLINE];
26+
int m_oSpec[MAXSPEC + 1];
27+
int m_PckY[MAXSPEC + 1];
28+
int m_PckT[MAXSPEC + 1];
29+
int m_cSpecY[256];
30+
int m_cSpecSY[256];
31+
int BARWITH;
32+
int BARSTART;
3333

3434
public:
3535
CSpecWin();

WaveWin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ class CWaveWin : public CStatic
4343
DECLARE_MESSAGE_MAP()
4444
};
4545

46-
/////////////////////////////////////////////////////////////////////////////
46+
/////////////////////////////////////////////////////////////////////////////

stdafx.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
// Spec.pch will be the pre-compiled header
33
// stdafx.obj will contain the pre-compiled type information
44

5-
#include "stdafx.h"
6-
7-
5+
#include "stdafx.h"

stdafx.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,4 @@
3737
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
3838
#ifndef _AFX_NO_AFXCMN_SUPPORT
3939
#include <afxcmn.h> // MFC support for Windows Common Controls
40-
#endif // _AFX_NO_AFXCMN_SUPPORT
41-
40+
#endif // _AFX_NO_AFXCMN_SUPPORT

0 commit comments

Comments
 (0)