summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-12-12 08:57:30 +0000
committerBill Spitzak <spitzak@gmail.com>2000-12-12 08:57:30 +0000
commitf5375b6ab64edbe5e5b017b053fb1385613ceef9 (patch)
tree2d8ba8726b5a04e93cd7c08c3b2651c8ab976c36 /FL
parent0d0b0662300a6ca9f339ec6bdbdf555dec7f26a8 (diff)
Fl_Gl_Window does not set drawbuffer(BACKBUFFER) for single-buffered
windows. Fl_Input::replace(...) correctly updates the display if the replaced region does not include the mark, point, or selected region. Added Fl::add_check(...), Fl::remove_check, and Fl::has_check. These are similar to idle callbacks but are only called just before it waits for new events. They can be used to watch for changes in global state and respond to them. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H7
-rw-r--r--FL/glut.H10
2 files changed, 9 insertions, 8 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 74f1a9df5..a674d61f1 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl.H,v 1.8.2.9 2000/06/21 17:36:33 bill Exp $"
+// "$Id: Fl.H,v 1.8.2.10 2000/12/12 08:57:29 spitzak Exp $"
//
// Main header file for the Fast Light Tool Kit (FLTK).
//
@@ -94,6 +94,9 @@ public:
static FL_EXPORT void repeat_timeout(double t, Fl_Timeout_Handler,void* = 0);
static FL_EXPORT int has_timeout(Fl_Timeout_Handler, void* = 0);
static FL_EXPORT void remove_timeout(Fl_Timeout_Handler, void* = 0);
+ static FL_EXPORT void add_check(Fl_Timeout_Handler, void* = 0);
+ static FL_EXPORT int has_check(Fl_Timeout_Handler, void* = 0);
+ static FL_EXPORT void remove_check(Fl_Timeout_Handler, void* = 0);
static FL_EXPORT void add_fd(int fd, int when, void (*cb)(int,void*),void* =0);
static FL_EXPORT void add_fd(int fd, void (*cb)(int, void*), void* = 0);
static FL_EXPORT void remove_fd(int, int when);
@@ -214,5 +217,5 @@ public:
#endif
//
-// End of "$Id: Fl.H,v 1.8.2.9 2000/06/21 17:36:33 bill Exp $".
+// End of "$Id: Fl.H,v 1.8.2.10 2000/12/12 08:57:29 spitzak Exp $".
//
diff --git a/FL/glut.H b/FL/glut.H
index 3ab680519..d719937dc 100644
--- a/FL/glut.H
+++ b/FL/glut.H
@@ -1,5 +1,5 @@
//
-// "$Id: glut.H,v 1.6.2.7 2000/12/06 15:45:12 easysw Exp $"
+// "$Id: glut.H,v 1.6.2.8 2000/12/12 08:57:30 spitzak Exp $"
//
// GLUT emulation header file for the Fast Light Tool Kit (FLTK).
//
@@ -430,16 +430,14 @@ extern "C" {
extern int APIENTRY glutExtensionSupported(char *name);
-/* Stroke font opaque addresses (use constants instead in source code). */
-extern void *glutStrokeRoman;
-extern void *glutStrokeMonoRoman;
-
/* Stroke font constants (use these in GLUT program). */
#if defined(_WIN32) || defined(WIN32)
# define GLUT_STROKE_ROMAN ((void*)0)
# define GLUT_STROKE_MONO_ROMAN ((void*)1)
#else
+extern void *glutStrokeRoman;
# define GLUT_STROKE_ROMAN (&glutStrokeRoman)
+extern void *glutStrokeMonoRoman;
# define GLUT_STROKE_MONO_ROMAN (&glutStrokeMonoRoman)
#endif
@@ -472,5 +470,5 @@ extern void APIENTRY glutSolidIcosahedron();
#endif /* __glut_h__ */
//
-// End of "$Id: glut.H,v 1.6.2.7 2000/12/06 15:45:12 easysw Exp $".
+// End of "$Id: glut.H,v 1.6.2.8 2000/12/12 08:57:30 spitzak Exp $".
//