Author: matt
Date: 2012-06-01 01:29:54 -0700 (Fri, 01 Jun 2012)
New Revision: 9566
Log:
X11 fix

Modified:
   branches/branch-3.0/src/fltk3/x11.cxx

Modified: branches/branch-3.0/src/fltk3/x11.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/x11.cxx       2012-06-01 08:26:19 UTC (rev 
9565)
+++ branches/branch-3.0/src/fltk3/x11.cxx       2012-06-01 08:29:54 UTC (rev 
9566)
@@ -39,6 +39,7 @@
 #  include <fltk3/run.h>
 #  include <fltk3/x.h>
 #  include <fltk3/Window.h>
+#  include <fltk3/Box.h>
 #  include <fltk3/utf8.h>
 #  include <fltk3/Tooltip.h>
 #  include <fltk3/draw.h>
@@ -2102,7 +2103,9 @@
 // contents are restored to the area, but this assumes the area
 // is cleared to background color.  So this is disabled in this version.
 // fltk3::Window *fl_boxcheat;
-static inline int can_boxcheat(uchar b) {return (b==1 || ((b&2) && b<=15));}
+static inline int can_boxcheat(fltk3::Box* b) {
+  return b->fills_rectangle();
+}
 
 void fltk3::Window::show() {
   image(fltk3::scheme_bg_);

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to