NAME

origin - reset the display screen origin

SYNOPSIS

#include <mpict_p.h>

PICT origin (x,y)
int x,y;

DESCRIPTION

origin resets the origin of the MEGAPIC display to any screen coordinates. x and y are the new origin coordinates specified from the center of the screen (0,0). They can range from -2048 to 2047.

After calling origin, any pictures in the dispay-list will be positioned with respect to the new origin.

origin returns 0 on success.

SEE ALSO

mktop(3U).

DIAGNOSTICS

origin prints an appropriate error message and returns the value -1 if errors occur while writing display-list memory.