Important: The information in this document is obsolete and should not be used for new development.
NewScreenBuffer
TheNewGWorld
function uses theNewScreenBuffer
function to create an offscreenPixMap
record 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
TRUE
to make the memory block for the offscreen pixel map purgeable, or a value ofFALSE
to make it unpurgeable.gdh
- The handle to the
GDevice
record for the graphics device with the greatest pixel depth among all graphics devices whose boundary rectangles intersect the rectangle specified in theglobalRect
parameter.offscreenPixMap
- A handle to the new offscreen
PixMap
record.DESCRIPTION
TheNewScreenBuffer
function creates a new offscreenPixMap
record, using the pixel depth and color table of the device whoseGDevice
record is returned in thegdh
parameter. TheNewScreenBuffer
function returns a handle to the new offscreen pixel map in theoffscreenPixMap
parameter.As its function result,
NewScreenBuffer
returns one of three result codes.SPECIAL CONSIDERATIONS
TheNewScreenBuffer
function 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 theNewScreenBuffer
function are
Trap macro Selector _QDExtensions $000E0010 RESULT CODES
noErr 0 No error paramErr -50 Illegal parameter cNoMemErr -152 Failed to allocate memory for structures