diff options
Diffstat (limited to 'hw/xnest/Color.c')
-rw-r--r-- | hw/xnest/Color.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/xnest/Color.c b/hw/xnest/Color.c index dc749478f..0a1b0bb20 100644 --- a/hw/xnest/Color.c +++ b/hw/xnest/Color.c @@ -34,7 +34,7 @@ is" without express or implied warranty. #include "XNWindow.h" #include "Args.h" -static ColormapPtr InstalledMaps[MAXSCREENS]; +static ColormapPtr *InstalledMaps; Bool xnestCreateColormap(ColormapPtr pCmap) @@ -334,6 +334,8 @@ xnestInstallColormap(ColormapPtr pCmap) { int index; ColormapPtr pOldCmap; + + SCREENSALLOC_FATAL(InstalledMaps, xnestNumScreens); index = pCmap->pScreen->myNum; pOldCmap = InstalledMaps[index]; @@ -360,6 +362,8 @@ xnestUninstallColormap(ColormapPtr pCmap) int index; ColormapPtr pCurCmap; + SCREENSFREE(InstalledMaps); + index = pCmap->pScreen->myNum; pCurCmap = InstalledMaps[index]; |