Important: The information in this document is obsolete and should not be used for new development.
NewScreenBuffer
TheNewGWorldfunction uses theNewScreenBufferfunction to create an offscreenPixMaprecord and allocate memory for the base address of its pixel image; applications generally don't need to useNewScreenBuffer.
FUNCTION NewScreenBuffer (globalRect: Rect; purgeable: Boolean; VAR gdh: GDHandle; VAR offscreenPixMap: PixMapHandle): QDErr;
globalRect
The boundary rectangle, in global coordinates, for the offscreen pixel map.purgeable- A value of
TRUEto make the memory block for the offscreen pixel map purgeable, or a value ofFALSEto make it unpurgeable.gdh- The handle to the
GDevicerecord for the graphics device with the greatest pixel depth among all graphics devices whose boundary rectangles intersect the rectangle specified in theglobalRectparameter.offscreenPixMap- A handle to the new offscreen
PixMaprecord.DESCRIPTION
TheNewScreenBufferfunction creates a new offscreenPixMaprecord, using the pixel depth and color table of the device whoseGDevicerecord is returned in thegdhparameter. TheNewScreenBufferfunction returns a handle to the new offscreen pixel map in theoffscreenPixMapparameter.As its function result,
NewScreenBufferreturns one of three result codes.SPECIAL CONSIDERATIONS
TheNewScreenBufferfunction may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theNewScreenBufferfunction are
Trap macro Selector _QDExtensions $000E0010 RESULT CODES
noErr 0 No error paramErr -50 Illegal parameter cNoMemErr -152 Failed to allocate memory for structures