fix max bars when starting with -S then toggle with s key, use <kbd/> to mark keys. (#22)

master
Yu-Jie Lin 11 years ago
parent 87dd6cc157
commit aad1e793ac
  1. 4
      README.md
  2. 8
      cava.c

@ -217,5 +217,5 @@ If cava quits unexpectedly or is force killed, echo must be turned on manually w
| Key | Description |
| --- | ----------- |
| `s` | Toggle Scientific mode |
| `q` or `CTRL-C`| Quit C.A.V.A. |
| <kbd>s</kbd> | Toggle Scientific mode |
| <kbd>q</kbd> or <kbd>CTRL-C</kbd>| Quit C.A.V.A. |

@ -461,11 +461,9 @@ Options:\n\
#endif
bw = width / bands;
if (!smode)
{
g = ((float)height / 1000) * pow((60 / (float)framerate),
2.5); //calculating gravity
}
//calculating gravity
g = ((float)height / 1000) * pow((60 / (float)framerate), 2.5);
//if no bands are selected it tries to padd the default 20 if there is extra room
if (autoband == 1) bands = bands + (((w.ws_col) - (bw * bands + bands - 1)) /
(bw + 1));

Loading…
Cancel
Save