| GrayGetInt1Handler | Function (Macro)

gray.h

INT_HANDLER GrayGetInt1Handler (void);

Returns the interrupt handler executed by the grayscale algorithm.

GrayGetInt1Handler returns the interrupt handler which is called internally by the grayscale support. Use this function to store the interrupt temporarily when you are using GraySetInt1Handler to change it.
The interrupt handler called by the grayscale routines looks something like this (pseudo-code):

    DEFINE_INT_HANDLER (GrayInt1Handler)
    {
      SwitchPlanes ();
      ExecuteHandler (OldInt1);
    }

where OldInt1 is the previous AUTO_INT_1 handler. GrayGetInt1Handler returns the value of OldInt1. Note that this is just a C-style declaration of the AUTO_INT_1 handler for grayscale; the actual one is implemented in assembly.

Deprecated alias: GetGrayInt1Handler

See also: GraySetInt1Handler, intr.h