Changeset 2527
- Timestamp:
- Jan 27, 2000, 12:48:03 AM (25 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/gdi32/gdi32.cpp ¶
r2526 r2527 1 /* $Id: gdi32.cpp,v 1.3 2 2000-01-26 23:19:55sandervl Exp $ */1 /* $Id: gdi32.cpp,v 1.33 2000-01-26 23:48:02 sandervl Exp $ */ 2 2 3 3 /* … … 670 670 671 671 rc = O32_CreateBitmap(nWidth, nHeight, cPlanes, cBitsPerPel, lpvBits); 672 dprintf(("GDI32: CreateBitmap (%d,%d) bps %d returned % x\n", nWidth, nHeight, cBitsPerPel, rc));672 dprintf(("GDI32: CreateBitmap (%d,%d) bps %d returned %d\n", nWidth, nHeight, cBitsPerPel, rc)); 673 673 return(rc); 674 674 } … … 2406 2406 } 2407 2407 //****************************************************************************** 2408 2408 2409 //****************************************************************************** 2409 2410 BOOL WIN32API SetObjectOwner( HGDIOBJ arg1, int arg2 ) … … 3137 3138 } 3138 3139 3139 3140 /*****************************************************************************3141 * Name : int GetPixelFormat3142 * Purpose : The GetPixelFormat function obtains the index of the specified3143 * device context's currently selected pixel format.3144 * Parameters: HDC hdc handle of device context3145 * Variables :3146 * Result : 0 / 13147 * Remark :3148 * Status : UNTESTED STUB3149 *3150 * Author : Patrick Haller [Mon, 1998/06/15 08:00]3151 *****************************************************************************/3152 3153 int WIN32API GetPixelFormat(HDC hdc)3154 {3155 dprintf(("GDI32: GetPixelFormat(%08xh) not implemented.\n",3156 hdc));3157 3158 return (0);3159 }3160 3161 3162 3140 /***************************************************************************** 3163 3141 * Name : BOOL SetDeviceGammaRamp -
TabularUnified trunk/src/gdi32/opengl.cpp ¶
r2526 r2527 1 /* $Id: opengl.cpp,v 1. 5 2000-01-26 23:19:55sandervl Exp $ */1 /* $Id: opengl.cpp,v 1.6 2000-01-26 23:48:03 sandervl Exp $ */ 2 2 3 3 /* … … 33 33 typedef BOOL (* WIN32API SETPIXELFMT) (HDC, int, CONST PIXELFORMATDESCRIPTOR *); 34 34 typedef BOOL (* WIN32API SWAPBUFFERS) (HDC hdc); 35 // JVDH MOD STARTS36 35 typedef int (* WIN32API DESCRIBEPIXELFMT) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR); 37 // JVDH MOD ENDS 36 typedef int (* WIN32API GETPIXELFMT) (HDC); 38 37 39 38 … … 45 44 static SETPIXELFMT glSetPixelFormat = NULL; 46 45 static SWAPBUFFERS glSwapBuffers = NULL; 47 // JVDH MOD STARTS48 46 static DESCRIBEPIXELFMT glDescribePixelFormat = NULL; 49 // JVDH MOD ENDS 47 static GETPIXELFMT glGetPixelFormat = NULL; 50 48 static HINSTANCE hOpenGL = NULL; 51 49 … … 90 88 } 91 89 92 // JVDH MOD STARTS93 90 if(glDescribePixelFormat == NULL) { 94 91 glDescribePixelFormat = (DESCRIBEPIXELFMT)O32_GetProcAddress(hOpenGL, "OS2wglDescribePixelFormat"); … … 96 93 return(FALSE); 97 94 } 98 // JVDH MOD ENDS 95 96 if(glGetPixelFormat == NULL) { 97 glGetPixelFormat = (GETPIXELFMT)O32_GetProcAddress(hOpenGL, "OS2wglGetPixelFormat"); 98 if(glGetPixelFormat == NULL) 99 return(FALSE); 100 } 99 101 100 102 return(TRUE); /* OpenGL is initialized and enabled*/ … … 117 119 CONST PIXELFORMATDESCRIPTOR*,pformat) 118 120 { 119 //@@@PH: ?? return(1);120 121 121 if (glChoosePixelFormat == NULL) 122 122 if (internalOpenGLEnable() == FALSE) … … 138 138 } 139 139 140 ODINFUNCTION1(int,GetPixelFormat,HDC,hdc) 141 { 142 if (glGetPixelFormat == NULL) 143 if (internalOpenGLEnable() == FALSE) 144 return(0); 145 146 return(glGetPixelFormat(hdc)); 147 } 140 148 141 149 /*****************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.