Lines Matching refs:Ptr
88 static Ptr CopyGammaTable (GammaTblPtr pTableGammaIn)
100 BlockMove( (Ptr)pTableGammaIn, (Ptr)pTableGammaOut, tableSize); /* move everything */
102 return (Ptr)pTableGammaOut; /* return whatever we allocated, could be NULL */
116 *(Ptr *)cParam.csParam = (Ptr) &DeviceGammaRec; /* record for gamma */
125 static Ptr GetDeviceGamma (GDHandle hGD)
135 return (Ptr) pTableGammaReturn;
138 static void DisposeGammaTable (Ptr pGamma)
141 DisposePtr((Ptr) pGamma); /* get rid of it */
144 static void DisposeSystemGammas (Ptr* ppSystemGammas)
156 DisposeGammaTable ((Ptr) pSysGammaIn->devGamma [i]->pDeviceGamma); /* dump gamma table */
157 DisposePtr ((Ptr) pSysGammaIn->devGamma [i]); /* dump device info */
159 DisposePtr ((Ptr) pSysGammaIn->devGamma); /* dump device pointer array */
160 DisposePtr ((Ptr) pSysGammaIn); /* dump system structure */
166 static Boolean GetDeviceGammaRampGD (GDHandle hGD, Ptr pRamp)
203 static Ptr GetSystemGammas (void)
241 return (Ptr) pSysGammaOut; /* return pointer to structure */
244 DisposeSystemGammas ((Ptr *) &pSysGammaOut); /* otherwise dump the current structures (dispose does error checking) */
249 static void RestoreDeviceGamma (GDHandle hGD, Ptr pGammaTable)
254 Ptr csPtr;
260 csPtr = (Ptr) &gameRecRestore;
261 err = Control((**hGD).gdRefNum, cscSetGamma, (Ptr) &csPtr); /* restore gamma */
269 csPtr = (Ptr) &setEntriesRec;
271 err = Control((**hGD).gdRefNum, cscSetEntries, (Ptr) &csPtr); /* SetEntries in CLUT */
276 static void RestoreSystemGammas (Ptr pSystemGammas)
282 RestoreDeviceGamma (pSysGammaIn->devGamma [i]->hGD, (Ptr) pSysGammaIn->devGamma [i]->pDeviceGamma); /* restore gamma */
285 static Ptr CreateEmptyGammaTable (short channels, short entries, short bits)
303 return (Ptr)pTableGammaOut; /* return whatever we allocated */
306 static Boolean SetDeviceGammaRampGD (GDHandle hGD, Ptr pRamp)
313 Ptr csPtr;
329 BlockMove ((Ptr)pRamp, (Ptr)pGammaBase, channels * entries); /* move everything */
354 gameRecRestore.csGTable = (Ptr) pTableGammaNew; /* setup restore record */
355 csPtr = (Ptr) &gameRecRestore;
356 err = Control((**hGD).gdRefNum, cscSetGamma, (Ptr) &csPtr); /* restore gamma (note, display drivers may delay returning from this until VBL) */
364 csPtr = (Ptr) &setEntriesRec;
365 err = Control((**hGD).gdRefNum, cscSetEntries, (Ptr) &csPtr); /* SetEntries in CLUT */
367 DisposeGammaTable ((Ptr) pTableGammaNew); /* dump table */
375 gameRecRestore.csGTable = (Ptr) NULL; /* setup restore record */
376 csPtr = (Ptr) &gameRecRestore;
377 err = Control((**hGD).gdRefNum, cscSetGamma, (Ptr) &csPtr); /* restore gamma */
385 csPtr = (Ptr) &setEntriesRec;
386 err = Control((**hGD).gdRefNum, cscSetEntries, (Ptr) &csPtr); /* SetEntries in CLUT */
396 static Ptr systemGammaPtr;
419 if (SetDeviceGammaRampGD(GetMainDevice(), (Ptr) shiftedRamp))
427 if (GetDeviceGammaRampGD(GetMainDevice(), (Ptr) shiftedRamp))