diff options
Diffstat (limited to 'src/wgl/wglgears.c')
-rw-r--r-- | src/wgl/wglgears.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wgl/wglgears.c b/src/wgl/wglgears.c index 49e3b611..5769c07e 100644 --- a/src/wgl/wglgears.c +++ b/src/wgl/wglgears.c @@ -486,6 +486,16 @@ make_window(const char *name, int x, int y, int width, int height) /* now, create new context with new pixel format */ wglMakeCurrent(hDC, NULL); wglDeleteContext(hRC); + DeleteDC(hDC); + + hWnd = CreateWindowEx(dwExStyle, name, name, + WS_CLIPSIBLINGS | WS_CLIPCHILDREN | dwStyle, + 0, 0, + winrect.right - winrect.left, + winrect.bottom - winrect.top, + NULL, NULL, hInst, NULL); + + hDC = GetDC(hWnd); SetPixelFormat(hDC, pixelFormat, &pfd); hRC = wglCreateContext(hDC); wglMakeCurrent(hDC, hRC); |