Better centering of scope.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8223 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
mahlzeit 2004-06-28 17:35:20 +00:00
parent c75d8265c9
commit 54302f75a1
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ void ScopeView::DrawPlaying()
SetHighColor(255, 0, 130); SetHighColor(255, 0, 130);
SetLowColor(0, 130, 0); SetLowColor(0, 130, 0);
#define N 16 #define N 16
int32 x, y, sx = 0, f = (height << N) / 65535, dy = height / 2; int32 x, y, sx = 0, f = (height << N) / 65535, dy = height / 2 + 1;
for (int32 i = 0; i < width; i++) for (int32 i = 0; i < width; i++)
{ {
x = sx / width; x = sx / width;