From: Don H. <dh...@ho...> - 2002-05-15 18:59:32
|
>Anyhow, I found one last vestige of glib in freeglut_main.c, >made a small change to freeglut.h to build a static library >and generated some simple makefiles myself. With this I managed >to build the tests/one.exe program, but it doesn't seem to >draw anything in the windows. Oh well. Ah ha! The window->State.Visible flag is never set to TRUE in the TARGET_HOST_WIN32 code, and as of CVS version 1.6 of freeglut_main.c the code actually checks for this in fghRedrawWindowByHandle(), so it'll NEVER run the display callback. I added a case to fgWindowProc() for WM_SHOWWINDOW and it seems to work now. case WM_SHOWWINDOW: /* * We are now Visible! */ window->State.Visible = TRUE; _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |