From 185eab5c78ac3f508870268487f9748ccb5b8114 Mon Sep 17 00:00:00 2001 From: puggles Date: Mon, 22 Sep 2003 11:30:33 +0000 Subject: [PATCH] Add an idle function to ensure that the screen gets drawn even when callbacks are not generated by the mouse/keyboard. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@199 7f0cb862-5218-0410-a997-914c9d46530a --- .../freeglut/progs/demos/Fractals_random/fractals_random.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freeglut/freeglut/progs/demos/Fractals_random/fractals_random.c b/freeglut/freeglut/progs/demos/Fractals_random/fractals_random.c index b890e2c..ca52dd5 100644 --- a/freeglut/freeglut/progs/demos/Fractals_random/fractals_random.c +++ b/freeglut/freeglut/progs/demos/Fractals_random/fractals_random.c @@ -236,6 +236,10 @@ void readConfigFile ( char *fnme ) } } +void Idle(void) { + return; +} + int main(int argc, char *argv[]) { @@ -262,6 +266,7 @@ main(int argc, char *argv[]) glutKeyboardFunc(Key); glutSpecialFunc(Special); glutDisplayFunc(Display); + glutIdleFunc(Idle); glutMainLoop();