mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-22 20:35:43 +00:00
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:
parent
bbfe7bed3f
commit
0ba1559946
6 changed files with 19 additions and 10 deletions
|
|
@ -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 */);
|
||||
|
|
|
|||
Loading…
Reference in a new issue