FLTK logo

[LOW] STR #3522: Blocks has a small bug

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[LOW] STR #3522: Blocks has a small bug Edo May 13, 2019  
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: https://www.fltk.org/str.php?L3522
Version: -current


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


Link: https://www.fltk.org/str.php?L3522
Version: -current


Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.