mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Fix amplitude directions
This commit is contained in:
parent
2d4ad3f60c
commit
56531c7a61
1 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ class EqGraph extends React.Component {
|
|||
const paddingLeft = 4;
|
||||
|
||||
const points = amplitudes.reduce(
|
||||
(prev, value, i) => prev.concat(paddingLeft + i * 16, getY(value)),
|
||||
(prev, value, i) => prev.concat(paddingLeft + i * 16, getY(100 - value)),
|
||||
[]
|
||||
);
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ class EqGraph extends React.Component {
|
|||
// The skin has not finished loading yet
|
||||
return;
|
||||
}
|
||||
const preampValue = getY(100 - this.props.preamp);
|
||||
const preampValue = getY(this.props.preamp);
|
||||
this.canvasCtx.drawImage(
|
||||
this.state.preampLineImg,
|
||||
0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue