From 94f7925f0127e4dbf597b033b57dd79c4947304d Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 6 Nov 2025 14:03:05 +0100 Subject: [PATCH] dix: move IMAGE_BUFSIZE define out of public header It's just a tuning parameter (that nobody touched for aeons) for DoGetImage(), inside dix/dispatch.c Signed-off-by: Enrico Weigelt, metux IT consult --- dix/dispatch.c | 6 ++++++ include/servermd.h | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/dix/dispatch.c b/dix/dispatch.c index cb7e87acc9..0f776678e1 100644 --- a/dix/dispatch.c +++ b/dix/dispatch.c @@ -2214,6 +2214,12 @@ ProcPutImage(ClientPtr client) return Success; } +/* size of buffer to use with GetImage, measured in bytes. There's obviously + * a trade-off between the amount of heap used and the number of times the + * ddx routine has to be called. + */ +#define IMAGE_BUFSIZE (64*1024) + static int DoGetImage(ClientPtr client, int format, Drawable drawable, int x, int y, int width, int height, diff --git a/include/servermd.h b/include/servermd.h index 087826f488..31f322cf4d 100644 --- a/include/servermd.h +++ b/include/servermd.h @@ -68,14 +68,6 @@ SOFTWARE. #define GLYPHPADBYTES 4 #endif -/* size of buffer to use with GetImage, measured in bytes. There's obviously - * a trade-off between the amount of heap used and the number of times the - * ddx routine has to be called. - */ -#ifndef IMAGE_BUFSIZE -#define IMAGE_BUFSIZE (64*1024) -#endif - /* pad scanline to a longword */ #ifndef BITMAP_SCANLINE_UNIT #define BITMAP_SCANLINE_UNIT 32