| N F O _ G E T D R I M A P ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - NFO_#?
----------------------------------------------------------------------------
NAME
nfo_getdrimap() - Get a copy of DrawInfo pen mappings.
SYNOPSIS
result = nfo_getdrimap(drimap, screen);
BOOL nfo_getdrimap(UWORD *, struct Screen *);
FUNCTION
This function copies screen's 'dri_Pens' to local table.
INPUTS
drimap - Locally supplied pen mapping table.
screen - Screen from which mapping will be taken.
RETURNS
Returns TRUE is everything went fine or FALSE if it did
not.
BASES
SysBase, IntuitionBase
NOTES
Lock the desired screen before requesting pen mappings!
SEE ALSO
EXAMPLE
...
#include <proto/intuition.h>
#include <qdev.h>
...
struct Screen *screen;
QDEV_NFO_DRIMAPTYPEI(drimap);
if ((screen = ctl_lockscreensafe(NULL)))
{
if (nfo_getdrimap(drimap, screen))
{
if (drimap[BARDETAILPEN] != ~0)
{
...
}
}
ctl_unlockscreensafe(screen);
}
BUGS
None known.
----------------------------------------------------------------------------
| |
| |