summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-rw-r--r--FL/Enumerations.H9
-rw-r--r--FL/Fl_Browser_.H2
2 files changed, 10 insertions, 1 deletions
diff --git a/FL/Enumerations.H b/FL/Enumerations.H
index e8237ff74..add29e828 100644
--- a/FL/Enumerations.H
+++ b/FL/Enumerations.H
@@ -290,4 +290,13 @@ enum Fl_Mode { // visual types and Fl_Gl_Window::mode() (values match Glut)
FL_MULTISAMPLE= 128
};
+// damage masks
+
+const uchar FL_DAMAGE_CHILD = 0x01;
+const uchar FL_DAMAGE_EXPOSE = 0x02;
+const uchar FL_DAMAGE_LINE = 0x02;
+const uchar FL_DAMAGE_SCROLL = 0x04;
+const uchar FL_DAMAGE_OVERLAY = 0x04|0x08;
+const uchar FL_DAMAGE_ALL = 0x80;
+
#endif
diff --git a/FL/Fl_Browser_.H b/FL/Fl_Browser_.H
index f3ff3b521..f451b541a 100644
--- a/FL/Fl_Browser_.H
+++ b/FL/Fl_Browser_.H
@@ -65,7 +65,7 @@ protected:
void inserting(void *a,void *b); // insert a before b
int displayed(void *) const ; // true if this line is visible
void redraw_line(void *); // minimal update, no change in size
- void redraw_lines() {damage(4);} // redraw all of them
+ void redraw_lines() {damage(FL_DAMAGE_SCROLL);} // redraw all of them
void bbox(int&,int&,int&,int&) const;
int leftedge() const; // x position after scrollbar & border
void *find_item(int my); // item under mouse