[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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

1208.0. "Strange filling seen" by TEKTRM::REITH (Jim Reith DTN 235-8459 HANNAH::REITH) Mon Jul 31 1989 18:37

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.RTitleUserPersonal
Name
DateLines
1208.1I didn't state it but...TEKTRM::REITHJim Reith DTN 235-8459 HANNAH::REITHMon Jul 31 1989 18:394
VMS 5.1 on an 8 plane GPX microVax II

Sorry for the omission

1208.2Seen on SDC 5.2 alsoTEKTRM::REITHJim Reith DTN 235-8459 HANNAH::REITHWed Aug 02 1989 11:012
I upgraded to the latest and greatest VMS 5.2 and still see the problem

1208.3Solution foundTEKTRM::REITHJim Reith DTN 235-8459 HANNAH::REITHThu Aug 17 1989 14:045
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.