From 6ffda5aae75272fabdc27d6f693ae827be119e95 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 29 Sep 2009 11:49:09 +1000 Subject: dix/glx/composite: consolidate visual resize in one place. The previous code was copied and in both cases incorrectly fixed up the colormaps after resizing the visuals, this patch consolidates the visual resize + colormaps fixups in one place. This version also consolidates the vid allocation for the DepthPtr inside the function. I'm not 100% sure colormap.[ch] is the correct place for this but visuals are mostly created in fb and I know thats not the place to be resizing them. Fixes fd.o bug #19470. Signed-off-by: Dave Airlie Reviewed-by: Keith Packard Signed-off-by: Peter Hutterer --- include/colormap.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/colormap.h b/include/colormap.h index a3467c93f..de48ce8d8 100644 --- a/include/colormap.h +++ b/include/colormap.h @@ -179,4 +179,9 @@ extern _X_EXPORT int IsMapInstalled( Colormap /*map*/, WindowPtr /*pWin*/); +extern _X_EXPORT Bool ResizeVisualArray( + ScreenPtr /* pScreen */, + int /* new_vis_count */, + DepthPtr /* depth */); + #endif /* CMAP_H */ -- cgit v1.2.3