mirror of
https://github.com/fltk/fltk.git
synced 2026-05-22 07:01:34 +08:00
Don't accept clicks when paused.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+2
-2
@@ -729,7 +729,7 @@ BlockWindow::handle(int event) {
|
||||
|
||||
|
||||
if (Fl_Double_Window::handle(event)) return (1);
|
||||
else if (interval_ < 0.0) return (0);
|
||||
else if (interval_ < 0.0 || paused_) return (0);
|
||||
|
||||
switch (event) {
|
||||
case FL_PUSH :
|
||||
@@ -977,7 +977,7 @@ BlockWindow::timeout_cb(BlockWindow *bw) {
|
||||
// Update the play/pause button as needed...
|
||||
if ((bw->paused_ || bw->interval_< 0.0) &&
|
||||
bw->play_button_->w() < 80) {
|
||||
int s = bw->play_button_->w() + 5;
|
||||
int s = bw->play_button_->w() + 10;
|
||||
|
||||
bw->play_button_->resize(s, (s - 20) * (bw->h() - s) / 120, s, s);
|
||||
bw->play_button_->labelsize(s / 2 + 4);
|
||||
|
||||
Reference in New Issue
Block a user