DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L1948
Version: 1.3-current
Link: http://www.fltk.org/str.php?L1948
Version: 1.3-current
--- ../fltk-1.1/src/glut_compatability.cxx 2008-04-26 23:13:02.000000000
+0100
+++ ./fltk-1.1/src/glut_compatability.cxx 2008-04-29 20:11:18.000000000
+0100
@@ -179,6 +179,7 @@
motion = 0;
passivemotion = 0;
entry = 0;
+ idle = 0;
visibility = 0;
special = 0;
mouse_down = 0;
@@ -375,6 +376,19 @@
m->size--;
}
+
+void glutIdleFunc(void (*f)())
+{
+ // no change
+ if(glut_window->idle == f) return;
+ // remove current idle
+ if(glut_window->idle) Fl::remove_idle((void (*)(void
*))glut_window->idle);
+ // install new idle func - if one was passed
+ if(f) Fl::add_idle((void (*)(void *))f);
+ // record new idle func - even if it is NULL
+ glut_window->idle = f;
+} // glutIdleFunc
+
////////////////////////////////////////////////////////////////
int glutGet(GLenum type) {
@@ -390,7 +404,7 @@
else
return 0;
//case GLUT_WINDOW_NUM_CHILDREN:
-//case GLUT_WINDOW_CURSOR: return
+//case GLUT_WINDOW_CURSOR: return
case GLUT_SCREEN_WIDTH: return Fl::w();
case GLUT_SCREEN_HEIGHT: return Fl::h();
//case GLUT_SCREEN_WIDTH_MM:
@@ -481,7 +495,7 @@
const char *extensions, *start;
const int len = strlen( extension );
-
+
start = extensions = (const char *) glGetString(GL_EXTENSIONS);
if (!extensions) return 0;
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs