summaryrefslogtreecommitdiff
path: root/FL/glut.H
diff options
context:
space:
mode:
authorIan MacArthur <imacarthur@gmail.com>2008-11-13 19:42:45 +0000
committerIan MacArthur <imacarthur@gmail.com>2008-11-13 19:42:45 +0000
commitcbfba6fecae00c524c04c62bb07cc7da143e7224 (patch)
tree1a6725adba89d2b24bbe8cc1dddbcc2533ed564d /FL/glut.H
parentba2ed820287d16d19aee60cb0c61bd6680031f8f (diff)
STR 1948: fix glutIdleFunc so that it does not use the deprecated Fl::set_idle method, and does not interact harmfully with other Fl::add/remove_idle() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/glut.H')
-rw-r--r--FL/glut.H2
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/glut.H b/FL/glut.H
index 5ed214363..29542f60d 100644
--- a/FL/glut.H
+++ b/FL/glut.H
@@ -238,7 +238,7 @@ enum {GLUT_LEFT, GLUT_ENTERED};
inline void glutVisibilityFunc(void (*f)(int s)) {glut_window->visibility=f;}
enum {GLUT_NOT_VISIBLE, GLUT_VISIBLE};
-inline void glutIdleFunc(void (*f)()) {Fl::set_idle(f);}
+FL_EXPORT void glutIdleFunc(void (*f)());
// Warning: this cast may not work on all machines:
inline void glutTimerFunc(unsigned int msec, void (*f)(int), int value) {