mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +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:
@@ -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 */);
|
||||
|
||||
Reference in New Issue
Block a user