Skip to content

Commit 25a7868

Browse files
committed
[PR #1340] dix: move IMAGE_BUFSIZE define out of public header
PR: #1340
1 parent a3eab2e commit 25a7868

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

dix/dispatch.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,6 +2214,12 @@ ProcPutImage(ClientPtr client)
22142214
return Success;
22152215
}
22162216

2217+
/* size of buffer to use with GetImage, measured in bytes. There's obviously
2218+
* a trade-off between the amount of heap used and the number of times the
2219+
* ddx routine has to be called.
2220+
*/
2221+
#define IMAGE_BUFSIZE (64*1024)
2222+
22172223
static int
22182224
DoGetImage(ClientPtr client, int format, Drawable drawable,
22192225
int x, int y, int width, int height,

include/servermd.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@ SOFTWARE.
6868
#define GLYPHPADBYTES 4
6969
#endif
7070

71-
/* size of buffer to use with GetImage, measured in bytes. There's obviously
72-
* a trade-off between the amount of heap used and the number of times the
73-
* ddx routine has to be called.
74-
*/
75-
#ifndef IMAGE_BUFSIZE
76-
#define IMAGE_BUFSIZE (64*1024)
77-
#endif
78-
7971
/* pad scanline to a longword */
8072
#ifndef BITMAP_SCANLINE_UNIT
8173
#define BITMAP_SCANLINE_UNIT 32

0 commit comments

Comments
 (0)