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