You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fltkc...@googlegroups.com
On macOS, Fl_Scroll redraws incorrectly when its area exceeds the window it is in, it seems. I found the issue in the sample program that comes with this email or archive, as well as in my application which has nested groups.
The problem is that Fl_Cocoa_Window_Driver::scroll() never returns 1 from this function. It does not do the checks of success in the drawn areas as they are done in X11 and Win32 counterparts.
As a stop gap, for the time being, I am patching FLTK's Fl_Cocoa_Window_Driver::scroll() to always return 1 which fixes the issue (but it is likely not very efficient).
To test the error, compile FLTK with and without the patch.
And compile the sample program main.cpp with fltk-config.