Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
I'm having a problem using XFillRectangle and XFillPolygon My application scrolls a window around on a pseudo viewport and shows what is in the enclosed region. to do this I've been using clipping regions and drawing into the viewport. No problem. Now think of it as moving the "paper" under a fixed window... The paper translates the objects while the clipping region stays fixed at 0,0 width,height This generates calls to XFillRectangle with an x,y (int) that might be negative and the fill color is splattered over the entire clipping region even though the rectangle doesn't appear in the clipping region. Similar problems are seen with XFillPolygon (the more interesting case) x and y are stated as ints in the Getty's maroon X Windows book so they should accept negative values right? The width and height are positive numbers as they should be. Shouldn't the clipping region handle rectangles/polygons with negative points. (as soon as the rectangle overlaps a clipping boundary it works just not in the totally outside case) Suggestions/insights?
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
1208.1 | I didn't state it but... | TEKTRM::REITH | Jim Reith DTN 235-8459 HANNAH::REITH | Mon Jul 31 1989 18:39 | 4 |
VMS 5.1 on an 8 plane GPX microVax II Sorry for the omission | |||||
1208.2 | Seen on SDC 5.2 also | TEKTRM::REITH | Jim Reith DTN 235-8459 HANNAH::REITH | Wed Aug 02 1989 11:01 | 2 |
I upgraded to the latest and greatest VMS 5.2 and still see the problem | |||||
1208.3 | Solution found | TEKTRM::REITH | Jim Reith DTN 235-8459 HANNAH::REITH | Thu Aug 17 1989 14:04 | 5 |
What I ended up doing which causes more round trips than I had hoped was to define the polygon as a region with XPolygonRegion and then use the clipping rectangle with XRectInRegion and only draw if != RectangleOut. I still think that the original form should have worked. |