FLTK logo

[fltk.coredev] macOS Fl_Scroll subtle bug

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

macOS Fl_Scroll subtle bug Gonzalo Garramuno Nov 23, 2022  
 
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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.