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 <airlied@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
ad5c0d9efa
commit
6ffda5aae7
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user