mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
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 <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
b3a5b5b61c
commit
94f7925f01
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user