|
|
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.
$ fltk-config --compile main.cpp
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/04F7C471-184A-4B25-B18E-C0DE11B6AEEC%40gmail.com.
—
Gonzalo Garramuno
ggarra13@gmail.com
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/04F7C471-184A-4B25-B18E-C0DE11B6AEEC%40gmail.com.
[ Direct Link to Message ] | |
|
| |