> void MyClass::draw()
> {
> make_current();
> Fl_Double_Window::draw();
>
> // here is the code to draw lines using fl_line function
> ..
> ..
> }
I think you need to give us more context - such as what is in your draw
method, and how you are calling it. You are *not* calling draw directly,
I hope!?
Also, which version of fltk, what platform etc...
> void MyClass::draw()
> {
> make_current();
Ooh, no! You really should not call make_current from within the draw
method... The draw method will only be scheduled when the correct window
*is* current - calling make_current in that state is unlikely to be a
Good Thing...!
>
> if(count==0)
> {
> Fl_Double_Window::draw(); // call only once
> count++;
Why only call the base class draw the first time? I would think it is
generally a Good Thing to call the base class methid every time, uless
there is some specific reason NOT to do so.
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev