1
Fork 0

Fixed stop-scroll functionality.

Now it scrolls to the play position, which may not
be zero.
This commit is contained in:
EvanR 2009-09-22 14:06:25 -04:00
parent 691c5eee90
commit 12365aed59
2 changed files with 6 additions and 4 deletions

View File

@ -86,9 +86,6 @@ class Arranger : public fltk::Widget {
int over_rhandle(seqpat* s);
int over_lhandle(seqpat* s);
int tick2xpix(int tick);
int xpix2tick(int xpix);
int quantize(int xpix);
int delete_flag;
@ -158,6 +155,11 @@ class Arranger : public fltk::Widget {
void scrollTo(int X, int Y);
int tick2xpix(int tick);
int xpix2tick(int xpix);
int quantize(int xpix);
};
#endif

View File

@ -519,7 +519,7 @@ void press_stop(){
ui->metronome->update(left);
ui->arranger->scrollTo(0,ui->arranger->scrolly);
ui->arranger->scrollTo(ui->arranger->tick2xpix(left),ui->arranger->scrolly);
}