the following method makes my screen go black and i have to hard reset
my macbook (early2008, OSX 10.6.7). i had to reset twice before i've
seen the problem: the iteration statement was copied from an if
statement and i forgot to add the 'i <' before the '12 * octave + 24'.
is that supposed to crash a computer? eg is it some known oddness,
plausable - or even reasonable behaviour? ha!
it gets called in draw() if (damage() & (FL_DAMAGE_ALL | d_highlight))
void MiniPiano::draw_highlights()
{
for (int i = 12 * octave; 12 * octave + 24; i++)
if (active_keys[i] != 0)
{
highlight_key(i);
if (active_keys[i] < 0)
active_keys[i] = 0;
}
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk