Re: capi bounding rects question
Hello Paul,
| I'm building a simple 2D graphics editor using CAPI, using pinboard
| objects. I noticed that many of my objects would not redraw correctly.
| For example, when I slide (using the mouse) another window over the
| pinboard and slide it off, the damaged objects sometimes do not redraw
| at all. It looks like I'm not causing the bounding rect of capi
| objects to be set correctly, or that I have a basic misunderstanding
| somewhere.
|
| Here's a lump of code that appears to demonstrate my problem (a
| slightly modified version of example code in the manual). Test1 and
| test2 cause two 3x3 grids of rectangles to be drawn. The test2
| rectangles are the size of the "bounding box" (to my current
| understanding) and the test1 rectangles are slightly smaller. If you
| grab, say, the Listener window and slide it slowly over these two
| windows, the test1 rectangles redraw, whereas the test2 rectangles lose
| parts of their sides (sometimes). I get the same results in LWW and
| LWL (4.2.7). I expected the test2 rectangles to redraw fully (since
| their edges are coincident with the "bounding box" and the damage
| rectangles).
|
| Can anyone spot the bug in my understanding or my code?
|...snip...|
In my LWW 4.2.5, both of them sometimes get redrawn correctly, but sometimes
look damaged on depressing the mouse button. Later, on moving the mouse
pointer they are completely restored.
I consider this a CAPI feature of redrawing in a background process.
---
Sincerely,
Dmitri Ivanov
www.aha.ru/~divanov