glut_init.c, method __glutOpenWin32Connection(). I have changed this to look as follows:
/* Clear (important!) and then fill in the window class structure. */
memset(&wc, 0, sizeof(WNDCLASS));
wc.style = 0;//CS_OWNDC;
wc.lpfnWndProc = (WNDPROC)__glutWindowProc;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(hInstance, "GLUT_ICON");
wc.hCursor = 0;//LoadCursor(hInstance, IDC_ARROW);
wc.hbrBackground = NULL;
wc.lpszMenuName = NULL;
wc.lpszClassName = classname;
The AWT code (Mustang b65, awt_Component.cpp line 384 method FillClassInfo) looks like this:
void AwtComponent::FillClassInfo(WNDCLASSEX *lpwc)
{
lpwc->cbSize = sizeof(WNDCLASSEX);
lpwc->style = 0L;//CS_OWNDC;
lpwc->lpfnWndProc = (WNDPROC)::DefWindowProc;
lpwc->cbClsExtra = 0;
lpwc->cbWndExtra = 0;
lpwc->hInstance = AwtToolkit::GetInstance().GetModuleHandle(),
lpwc->hIcon = AwtToolkit::GetInstance().GetAwtIcon();
lpwc->hCursor = NULL;
lpwc->hbrBackground = NULL;
lpwc->lpszMenuName = NULL;
lpwc->lpszClassName = GetClassName();
//Fixed 6233560: PIT: Java Cup Logo on the title bar of top-level windows look blurred, Win32
lpwc->hIconSm = AwtToolkit::GetInstance().GetAwtIconSm();
}
My change to the GLUT WNDCLASS structure didn’t change the performance…
As far as dumping the GLUT-chosen PIXELFORMATDESCRIPTOR, check out win32_glx.c method glxChooseVisual(), and insert the following at line 227:
fprintf( stderr, "Chosen pixel format (%d):\n", pf );
fprintf( stderr, " DoubleBuffered: %d\n"
" Stereo: %d\n"
" HardwareAccelerated: %d\n"
" DepthBits: %d\n"
" StencilBits: %d\n"
" Red: %d\n"
" Green: %d\n"
" Blue: %d\n"
" Alpha: %d\n"
" Red Accum: %d\n"
" Green Accum: %d\n"
" Blue Accum: %d\n"
" Alpha Accum: %d\n",
(match->dwFlags & PFD_DOUBLEBUFFER) != 0,
(match->dwFlags & PFD_STEREO) != 0,
(match->dwFlags & PFD_GENERIC_ACCELERATED) != 0,
match->cDepthBits,
match->cStencilBits,
match->cRedBits,
match->cGreenBits,
match->cBlueBits,
match->cAlphaBits,
match->cAccumRedBits,
match->cAccumGreenBits,
match->cAccumBlueBits,
match->cAccumAlphaBits );
Oh in case I haven’t said this, I’m using the latest glut-3.7 libraries.