On 26.05.2011 15:48, fltk-dev@easysw.com wrote: > Author: matt > Date: 2011-05-26 06:48:00 -0700 (Thu, 26 May 2011) > New Revision: 8738 > Log: > #2646: improved queries for screen sizes. > > Modified: > branches/branch-1.3/src/screen_xywh.cxx > > Modified: branches/branch-1.3/src/screen_xywh.cxx > =================================================================== > --- branches/branch-1.3/src/screen_xywh.cxx 2011-05-24 20:17:48 UTC (rev > 8737) > +++ branches/branch-1.3/src/screen_xywh.cxx 2011-05-26 13:48:00 UTC (rev > 8738)
... > @@ -287,24 +306,30 @@ > Y = screens[n].y; > W = screens[n].width; > H = screens[n].height; > - return; > + } else { > + X = Fl::x(); > + Y = Fl::y(); > + W = Fl::w(); > + H = Fl::h(); > } > #elif HAVE_XINERAMA > - if (num_screens> 0&& n>= 0&& n< num_screens) { > + if (num_screens> 0&& n>= 0&& n< num_screens&& screens) { > X = screens[n].x_org; > Y = screens[n].y_org; > W = screens[n].width; > H = screens[n].height; > - return; > + } else { > + X = Fl::x(); > + Y = Fl::y(); > + W = Fl::w(); > + H = Fl::h(); > } > #else > - (void)n; ^^^^^^^^^^^^ removing this (void)n is likely to trigger compiler warnings that this statement should prevent. I suggest to add it with a suitable comment. Sorry, now that RC6 is out... Matt ? Albrecht _______________________________________________ fltk-dev mailing list fltk-dev@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-dev