diff options
Diffstat (limited to 'hw/xnest/Color.c')
-rw-r--r-- | hw/xnest/Color.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xnest/Color.c b/hw/xnest/Color.c index b3f0fc488..6399e3470 100644 --- a/hw/xnest/Color.c +++ b/hw/xnest/Color.c @@ -34,8 +34,8 @@ is" without express or implied warranty. #include "XNWindow.h" #include "Args.h" -static int cmapScrPrivateKeyIndex; -static DevPrivateKey cmapScrPrivateKey = &cmapScrPrivateKeyIndex; +static DevPrivateKeyRec cmapScrPrivateKeyRec; +#define cmapScrPrivateKey (&cmapScrPrivateKeyRec) #define GetInstalledColormap(s) ((ColormapPtr) dixLookupPrivate(&(s)->devPrivates, cmapScrPrivateKey)) #define SetInstalledColormap(s,c) (dixSetPrivate(&(s)->devPrivates, cmapScrPrivateKey, c)) |