On 04.02.2010, at 09:52, MacArthur, Ian (SELEX GALILEO, UK) wrote: >> As far as I know, OP needs to use system functions to be >> sure of getting real resolution, not desktop size. > > As Edzard says, the fltk-1.x functions tend to return the "available" > screen real-estate, rather than the actual size of the display (i.e. > clipping off panels, taskbars, etc...) > > If you need the actual display size, using platform specific methods may > be better, or you can "round up" the values returned by screen_xywh() to > the nearest display size (this nasty hack worked reliably when all > monitors were well-known 4:3 ratio sizes - does not work now that there > are all manner of odd widescreen sizes kicking around... So don't do > this!)
Fl::x(), Fl::y(), Fl::w(), Fl::h() return the available desktop. It may even span multiple screens, although I think that that is quite uncommon. the screen_xywh() function should return the actual pixel resolution of all available screens. Matthias _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

