home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!lsl!snail
- From: snail@lsl.co.uk
- Newsgroups: comp.windows.x
- Subject: Re: Success! Eureka! Cancel that last post...
- Message-ID: <1992Dec15.115851.2837@lsl.co.uk>
- Date: 15 Dec 92 10:58:51 GMT
- References: <1jm6zb#0fJwbK4lwpNj8ZzxLR1HQvRg=esr@snark.thyrsus.com>
- Organization: Laser-Scan Ltd., Cambridge
- Lines: 33
-
- In article <1jm6zb#0fJwbK4lwpNj8ZzxLR1HQvRg=esr@snark.thyrsus.com>, esr@snark.thyrsus.com (Eric S. Raymond) writes:
- > In <1jl47Z#4zGwVx9MyJTb4OKv6T0lY9bl=esr@snark.thyrsus.com> I wrote:
- > There's good news and bad news.
- >
- > The good news is that I got an attack of the stubborns, pulled an all-nighter,
- > and finally *solved this problem*! My xlife now displays multi-state patterns
- > at any cell size. Yeee-ha!
- >
- > The bad news is that the way I found to make this work was to use a series of
- > XFillRectangle() calls in place of a single XFillRectangles(). I now believe
- > that there is a bug or undocumented limit in the generic XFillRectangles code
- > itself that was causing this problem. 'Ware hackers!
-
- No problem, I don't think its a bug. Its designed in. To quote from O'Reilly
- Volume Two, page 189 on XFillRectangles....
-
- "There is a limit to the number of rectangles that can be filled in a single
- call, that varies according to the server. To determine how many rectangles you
- can fill in a single call, you find out your server's maximum request size
- using XMaxRequestSize. Subtract 3 and divide by 2, and this is the maximum
- number of rectangles you can fill in a single call to XFillRectangles."
-
- Note that all of the rectangles will look the same: same colour etc.
- The smallest allowed request size is 4096 * 4 bytes, so you will be able to
- blat at least 16384 - 3 / 2 rectangles = 16381 / 2 = 8190 rectangles at a time
- at the worst.
- --
- snail@lsl.co.uk
-
- muso/unix joke: "which debugger do you use?"
- "I use dbx..."
- "Oh really, we use Dolby C..."
- Motorola inside.
-