Skip to content

Commit

Permalink
Update canvas.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
qishipai authored Sep 11, 2021
1 parent e07b043 commit 0f46710
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ Canvas::Canvas()

for (int i = 0; i < 11; ++i)
{
TX[i] = scale(i * 685);
TX[i] = scale(i * 684);
}

for (int i = 0; i < 128; ++i)
{
KeyX[i] = scale(i / 12 * 685 + genKeyX[i % 12]);
KeyX[i] = TX[i / 12] + scale(genKeyX[i % 12]);
}

TW = scale(685), TH = scale(610);
TW = scale(684), TH = scale(610);
BkeyW = scale(58 ), WkeyW = scale(93 );
BkeyH = scale(390), WkeyH = scale(608);
}
Expand Down Expand Up @@ -142,7 +142,7 @@ void Canvas::Note(int k, int yb, int ye, color c)

int Canvas::scale(int x) const
{
return (x * WinW + 3666) / 7333;
return (x * WinW + 3661) / 7323;
}

Canvas::RGBA_pix Canvas::getColor(color C) const
Expand Down

0 comments on commit 0f46710

Please sign in to comment.