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:
parent
095be1d2de
commit
d0554a0a52
@ -376,7 +376,6 @@ 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));
|
||||||
@ -384,9 +383,9 @@ GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly,
|
|||||||
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 );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user