On 07.01.2011 13:34, Matthias Melcher wrote: >> BTW.: I'm just fixing a bug WRT Xinerama and dpi for Cygwin/X11 or >> maybe generally for X11: As it is on my system, configure finds >> Xinerama, but it is not active with my X server configuration, >> i.e. XineramaIsActive(fl_display) returns false... Please don't >> submit RC3 before this is committed.
FWIW, I'm done with it, but it doesn't work as expected (unless we expect after recent discussions that it doesn't work 8-] ). Some values, all on the same PC (Win 7) with a Linux VM on the second screen. Both screens are identical (22", 16x10, about 90 ppi). Windows7> test/hello Screen 0 (1680, 0,1680,1050) res. is 96.000 x 96.000 ppi Screen 1 ( 0, 0,1680,1010) res. is 96.000 x 96.000 ppi Ubuntu> test/hello Screen 0 ( 0, 25,1680, 935) res. is 96.108 x 91.342 ppi Cygwin/X11> test/hello Screen 0 ( 0, 0,3360,1050) res. is 0.000 x 0.521 ppi Note that the screen dimensions are reported correctly according to the Windows/X server setup (I'm not absolutely sure about the Linux VM's hight value, however: 935 is the desktop's height value w/o WM areas). This is the responsible code in screen_xywh.cxx: int mm = DisplayWidthMM(fl_display, fl_screen); dpi[0] = mm ? Fl::w()*25.4f/mm : 0.0f; mm = DisplayHeightMM(fl_display, fl_screen); dpi[1] = mm ? Fl::h()*25.4f/mm : dpi[0]; Both functions Display*MM return _nonsense_ results on Cygwin/X11 (0 and 51200, resp.). > No, I'll wait until tonight (probably 2100 CET). We will still need another > RC with the new jpeg, png, and z lib. Okay, I think I'm ready for today. Albrecht _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
