summaryrefslogtreecommitdiff
path: root/win/Mfwnd.cpp
diff options
context:
space:
mode:
authorleo2000-12-18 12:42:31 +0000
committerleo2000-12-18 12:42:31 +0000
commit9f945b3fe2361205ba6a58f92dc976ded7bccb60 (patch)
tree54db9efd1c083ac06128e4f9d8f1f4e2044d832c /win/Mfwnd.cpp
parente679694a7bcb61ffee8351bad0396944716b81d4 (diff)
Fixes for win2k crash
git-svn-id: http://svn.leocad.org/trunk@183 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Mfwnd.cpp')
-rw-r--r--win/Mfwnd.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/win/Mfwnd.cpp b/win/Mfwnd.cpp
index 753fc4b..83ee3b3 100644
--- a/win/Mfwnd.cpp
+++ b/win/Mfwnd.cpp
@@ -54,11 +54,11 @@ int CMinifigWnd::InitGL()
pfd.cDepthBits = 24;
pfd.iLayerType = PFD_MAIN_PLANE;
- int nPixelFormat = pfnwglChoosePixelFormat(m_pDC->m_hDC, &pfd);
+ int nPixelFormat = OpenGLChoosePixelFormat(m_pDC->m_hDC, &pfd);
if (nPixelFormat == 0)
return -1 ;
- if (!pfnwglSetPixelFormat(m_pDC->m_hDC, nPixelFormat, &pfd))
+ if (!OpenGLSetPixelFormat(m_pDC->m_hDC, nPixelFormat, &pfd))
return -1 ;
m_pPal = new CPalette;
@@ -133,10 +133,9 @@ void CMinifigWnd::DrawScene()
RECT rc;
GetClientRect (&rc);
-
m_pFig->Resize (rc.right, rc.bottom);
m_pFig->Redraw ();
- pfnwglSwapBuffers (m_pDC->m_hDC);
+ OpenGLSwapBuffers (m_pDC->m_hDC);
pfnwglMakeCurrent (oldDC, oldRC);
}