Important: The information in this document is obsolete and should not be used for new development.
PortChanged
If you modify the content of aGrafPort
record (described in the chapter "Basic QuickDraw" in this book) orCGrafPort
record (described on page 4-39), including any of the data structures specified by handles within the record, use thePortChanged
procedure.
PROCEDURE PortChanged (port: GrafPtr);
port
- A pointer to the
GrafPort
record that you have changed.DESCRIPTION
ThePortChanged
procedure notifies QuickDraw that your application has changed the graphics port specified in theport
parameter. If your application has changed aCGrafPort
record, it must coerce its pointer (that is, itsCGrafPtr
) to a pointer to aGrafPort
record (that is, to aGrafPtr
) before passing the pointer in theport
parameter.You generally should not directly change any of the
PixPat
records specified in aCGrafPort
record, but instead use thePenPixPat
andBackPixPat
procedures. However, if your application does change the content of aPixPat
record, it should call thePixPatChanged
procedure (described in the preceding section) as well as thePortChanged
procedure.If your application changes the
pmTable
field of thePixMap
record specified in the graphics port, your application should callPortChanged
. If your application changes the content of theColorTable
record referenced by thepmTable
field, it should callCTabChanged
as well.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for thePortChanged
procedure are
Trap macro Selector _QDExtensions $00040009