summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleo2000-11-27 21:13:42 +0000
committerleo2000-11-27 21:13:42 +0000
commit496cc8be7151ba6671efef3bd43f4c78fd81930b (patch)
tree56824064847fec597406262dab01b4fd6190dcc2
parente1f79cfb4072c0bee6c594a643cf51fd562d1503 (diff)
wgl fixes
git-svn-id: http://svn.leocad.org/trunk@171 c7d43263-9d01-0410-8a33-9dba5d9f93d6
-rw-r--r--win/Tools.cpp4
-rw-r--r--win/aboutdlg.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/win/Tools.cpp b/win/Tools.cpp
index 3f9f431..1a78639 100644
--- a/win/Tools.cpp
+++ b/win/Tools.cpp
@@ -117,8 +117,8 @@ BOOL CreateRGBPalette(HDC hDC, CPalette **ppCPalette)
LOGPALETTE *pPal;
WORD n, i;
- n = GetPixelFormat(hDC);
- DescribePixelFormat(hDC, n, sizeof(pfd), &pfd);
+ n = pfnwglGetPixelFormat(hDC);
+ pfnwglDescribePixelFormat(hDC, n, sizeof(pfd), &pfd);
if (!(pfd.dwFlags & PFD_NEED_PALETTE)) return FALSE;
diff --git a/win/aboutdlg.cpp b/win/aboutdlg.cpp
index 36bb9c7..bb60f72 100644
--- a/win/aboutdlg.cpp
+++ b/win/aboutdlg.cpp
@@ -41,7 +41,7 @@ BOOL CAboutDlg::OnInitDialog()
CString info, tmp;
PIXELFORMATDESCRIPTOR pfd;
- DescribePixelFormat(m_hViewDC, GetPixelFormat(m_hViewDC), sizeof(PIXELFORMATDESCRIPTOR), &pfd);
+ pfnwglDescribePixelFormat(m_hViewDC, pfnwglGetPixelFormat(m_hViewDC), sizeof(PIXELFORMATDESCRIPTOR), &pfd);
info = ("Pixel Format: ");
if (pfd.iPixelType == PFD_TYPE_RGBA)