Adding a colormap index to the InitColormapPrivate() func call. Without it

it was completely useless.
test if colormap with index really exists in the list of installed maps
    before using it.
This commit is contained in:
Egbert Eich 2004-07-30 21:10:46 +00:00
commit 0ba1559946
6 changed files with 19 additions and 10 deletions

View file

@ -104,7 +104,7 @@ extern void ResetColormapPrivates(void);
typedef struct _ColormapRec *ColormapPtr;
typedef int (*InitCmapPrivFunc)(ColormapPtr);
typedef int (*InitCmapPrivFunc)(ColormapPtr, int);
extern int AllocateColormapPrivateIndex(
InitCmapPrivFunc /* initPrivFunc */);