> In fltk1.3, there has Fl_Window and Fl_Double_Window class, the
> Fl_Window will malloc w*h*bpp/8 Bytes memory, but Fl_Double_Window
will
> malloc double, which is same as fltk2.0.
> 
> Then I want to ask in which case we need to use Fl_Double_Window class
> but can not use Fl_Window class

You use a double window in any instance where you are worried about
buffering the screen refresh - an unbuffered window may be drawn
directly into the screen store, so that may result in the user seeing
flickering or other rendering artefacts as the screen is updated. A
buffered window will not show such artefacts.

Most apps now use buffered windows to ensure they do not get such
rendering artefacts, but if you are constrained for memory, or if the
nature of your app is such that you do not get rendering artefacts
anyway, then a regular window may suffice.




SELEX Galileo Ltd
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 mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to