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,7 +376,6 @@ GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly,
HWND hWnd;
HDC hDC, hDC_before=wglGetCurrentDC();
WNDCLASS wndCls;
ATOM atom;
/* create a dummy window */
ZeroMemory(&wndCls, sizeof(wndCls));
@ -384,9 +383,9 @@ GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly,
wndCls.hInstance = fgDisplay.Instance;
wndCls.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
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);
SetPixelFormat( hDC, pixelformat, ppfd );