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 @@ LbxColormapPrivInit (ColormapPtr pmap)
static int
LbxDefCmapPrivInit (ColormapPtr pmap)
LbxDefCmapPrivInit (ColormapPtr pmap, int index)
{
#if 0
/* BUG: You can't do that. lbxColormapPrivIndex hasn't