diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-02-21 20:23:49 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-02-21 20:38:33 +0100 |
| commit | 84c06419bcafec74e04323cebba2d78d91ba9b68 (patch) | |
| tree | 95603369ec7bdc51bcfb146c1d0c9145fe0e306b /src/Fl_x.cxx | |
| parent | 570a05a33c9dc42a16caa5a1a11cf34d4df1c1f9 (diff) | |
Remove obsolete/disabled "boxcheat" code
Windows platform: Remove comments about obsolete code and one
exported declaration of the variable 'fl_background_pixel' which
is used only on the X11 platform.
X11 platform: Remove comments.
Other platforms: not affected.
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 5fefa51c2..51cce9f3f 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -3198,16 +3198,9 @@ void Fl_X11_Window_Driver::label(const char *name, const char *iname) { //////////////////////////////////////////////////////////////// // Implement the virtual functions for the base Fl_Window class: -// If the box is a filled rectangle, we can make the redisplay *look* -// faster by using X's background pixel erasing. We can make it -// actually *be* faster by drawing the frame only, this is done by -// setting fl_boxcheat, which is seen by code in fl_drawbox.cxx: -// -// On XFree86 (and prehaps all X's) this has a problem if the window -// is resized while a save-behind window is atop it. The previous -// contents are restored to the area, but this assumes the area -// is cleared to background color. So this is disabled in this version. -// Fl_Window *fl_boxcheat; +// If the box is a filled rectangle, we can make the redisplay +// *look* faster by using X's background pixel erasing. + static inline int can_boxcheat(uchar b) {return (b==1 || ((b&2) && b<=15));} void Fl_X11_Window_Driver::show() { |
