Fixed first parameter of CreateWindow call, used for multisampling on Windows.

It compiles, but it is otherwise untested.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@756 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2008-11-06 18:29:35 +00:00
parent 095be1d2de
commit d0554a0a52

View File

@ -376,17 +376,16 @@ GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly,
HWND hWnd; HWND hWnd;
HDC hDC, hDC_before=wglGetCurrentDC(); HDC hDC, hDC_before=wglGetCurrentDC();
WNDCLASS wndCls; WNDCLASS wndCls;
ATOM atom;
/* create a dummy window */ /* create a dummy window */
ZeroMemory(&wndCls, sizeof(wndCls)); ZeroMemory(&wndCls, sizeof(wndCls));
wndCls.lpfnWndProc = DefWindowProc; wndCls.lpfnWndProc = DefWindowProc;
wndCls.hInstance = fgDisplay.Instance; wndCls.hInstance = fgDisplay.Instance;
wndCls.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW; wndCls.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
wndCls.lpszClassName = _T("FREEGLUT_dummy"); wndCls.lpszClassName = _T("FREEGLUT_dummy");
atom = RegisterClass( &wndCls ); RegisterClass( &wndCls );
hWnd=CreateWindow((LPCSTR)atom, _T(""), WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW , 0,0,0,0, 0, 0, fgDisplay.Instance, 0 ); hWnd=CreateWindow(_T("FREEGLUT_dummy"), _T(""), WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW , 0,0,0,0, 0, 0, fgDisplay.Instance, 0 );
hDC=GetDC(hWnd); hDC=GetDC(hWnd);
SetPixelFormat( hDC, pixelformat, ppfd ); SetPixelFormat( hDC, pixelformat, ppfd );