| [ Return to Bugs & Features | Roadmap 1.3 | SVN ⇄ GIT ]
STR #3522
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Example Programs |
Summary: | Blocks has a small bug |
Version: | 1.3-current |
Created By: | edmondog |
Assigned To: | AlbrechtS |
Fix Version: | 1.4.0 (SVN: v12353) |
Fix Commit: | 768ba675b06d9e794a1827ea2e376fe2670c5323 |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | edmondog 03:36 May 13, 2019 |
| For some oscure reasons @ row 834 in file blocks.cxx must be inserted: Fl::remove_timeout((Fl_Timeout_Handler)timeout_cb, (void *)this); before Fl::repeat_timeout(interval_, (Fl_Timeout_Handler)timeout_cb, (void *)this); otherwise on "play again" the previous timeout value will be used though the interval_ variable is set correctly. It's just a demo game, I know, but there's something weird about that timeout callback that I can't understand. Ciao. Edo | |
|
#2 | AlbrechtS 09:18 May 13, 2019 |
| Thanks for your report.
I can't find the code 'Fl::remove_timeout(...)' in line 834 in current versions (1.3.5 and 1.4.0) of test/blocks.cxx though.
Anyway, this bug has been fixed in FLTK 1.4.0 (git master) and will not be fixed in 1.3.x. If you like to fix your version of 1.3.5 (no earlier versions supported) you can copy the current 1.4 file [1] to your 1.3.5 distribution and compile it - this should work. Note that it will not work in 1.3.4 or earlier since a necessary include file was changed.
I'll close this report (fixed) in a few days or if the OP confirms the fix in 1.4.0. TIA.
BTW: which FLTK version do you use? You should consider upgrading to 1.3.5 if it's a lower version.
[1] https://raw.githubusercontent.com/fltk/fltk/master/test/blocks.cxx | |
|
#3 | AlbrechtS 02:39 May 18, 2019 |
| Closed w/resolution (fixed in 1.4.0). | |
[ Return to Bugs & Features ]
|
| |