bug - graphicsContext>>displayRectangularBorder:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

bug - graphicsContext>>displayRectangularBorder:

Terry Raymond

Perform the following code and closely examine the upper left corner

of the rectangle. Notice that the rectangle is not closed.

 

                | pix box gc |

                box := 0 @0 extent: 20 @ 20.

                pix := Pixmap extent: box extent.

                gc := pix graphicsContext.

                gc clear.

                gc paint: ColorValue darkGray.

                gc lineWidth: 2.

                gc displayRectangularBorder: (box insetBy: (3 @ 3 corner: 1 @ 1)).

                pix asImage inspect

 

Terry

 

===========================================================

Terry Raymond

Crafted Smalltalk

80 Lazywood Ln.

Tiverton, RI  02878

(401) 624-4517      [hidden email]

===========================================================

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: bug - graphicsContext>>displayRectangularBorder:

Steven Kelly
It works fine for me (Windows 8, 7.4.1, 7.7.1 and 7.9.feb12.1). Which VW version and platform do you see the problem on, and is it a virgin visual.im?
 
For me it falls back to #displayGeneralPolyline:, and closed=true.
#displayWideLineSetup:from:to: returns true, proj and round are false,
when entering displayWideLineJoinFrom:, points is:
#(3 @ 3 19 @ 3 19 @ 19 3 @ 19 3 @ 3)
and in the 4 calls to primDisplayPolygon:to: at the end of that method, bpoly is respectively:
#(3 @ 4 2 @ 3 2 @ 2 19 @ 2 19 @ 4)
#(18 @ 3 19 @ 2 20 @ 2 20 @ 19 18 @ 19)
#(19 @ 18 20 @ 19 20 @ 20 3 @ 20 3 @ 18)
#(4 @ 19 3 @ 20 2 @ 20 2 @ 3 4 @ 3)

All the best,
Steve


From: [hidden email] on behalf of Terry Raymond
Sent: Thu 04/04/2013 21:51
To: VWNC
Subject: [vwnc] bug - graphicsContext>>displayRectangularBorder:

Perform the following code and closely examine the upper left corner

of the rectangle. Notice that the rectangle is not closed.

 

                | pix box gc |

                box := 0 @0 extent: 20 @ 20.

                pix := Pixmap extent: box extent.

                gc := pix graphicsContext.

                gc clear.

                gc paint: ColorValue darkGray.

                gc lineWidth: 2.

                gc displayRectangularBorder: (box insetBy: (3 @ 3 corner: 1 @ 1)).

                pix asImage inspect

 

Terry

 

===========================================================

Terry Raymond

Crafted Smalltalk

80 Lazywood Ln.

Tiverton, RI  02878

(401) 624-4517      [hidden email]

===========================================================

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: bug - graphicsContext>>displayRectangularBorder:

Boris Popov, DeepCove Labs (SNN)
In reply to this post by Terry Raymond

7.8 looks okay on Windows,

 

ObjectMemory versionId #[70 47 70 240 78 0 0 0 70 40 70 80]

 

 

-Boris

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Steven Kelly
Sent: Thursday, April 04, 2013 3:20 PM
To: Terry Raymond; VWNC
Subject: Re: [vwnc] bug - graphicsContext>>displayRectangularBorder:

 

It works fine for me (Windows 8, 7.4.1, 7.7.1 and 7.9.feb12.1). Which VW version and platform do you see the problem on, and is it a virgin visual.im?

 

For me it falls back to #displayGeneralPolyline:, and closed=true.

#displayWideLineSetup:from:to: returns true, proj and round are false,

when entering displayWideLineJoinFrom:, points is:

#(3 @ 3 19 @ 3 19 @ 19 3 @ 19 3 @ 3)

and in the 4 calls to primDisplayPolygon:to: at the end of that method, bpoly is respectively:

#(3 @ 4 2 @ 3 2 @ 2 19 @ 2 19 @ 4)

#(18 @ 3 19 @ 2 20 @ 2 20 @ 19 18 @ 19)

#(19 @ 18 20 @ 19 20 @ 20 3 @ 20 3 @ 18)

#(4 @ 19 3 @ 20 2 @ 20 2 @ 3 4 @ 3)

All the best,
Steve


From: [hidden email] on behalf of Terry Raymond
Sent: Thu 04/04/2013 21:51
To: VWNC
Subject: [vwnc] bug - graphicsContext>>displayRectangularBorder:

Perform the following code and closely examine the upper left corner

of the rectangle. Notice that the rectangle is not closed.

 

                | pix box gc |

                box := 0 @0 extent: 20 @ 20.

                pix := Pixmap extent: box extent.

                gc := pix graphicsContext.

                gc clear.

                gc paint: ColorValue darkGray.

                gc lineWidth: 2.

                gc displayRectangularBorder: (box insetBy: (3 @ 3 corner: 1 @ 1)).

                pix asImage inspect

 

Terry

 

===========================================================

Terry Raymond

Crafted Smalltalk

80 Lazywood Ln.

Tiverton, RI  02878

(401) 624-4517      [hidden email]

===========================================================

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: bug - graphicsContext>>displayRectangularBorder:

Samuel S. Shuster-2
In reply to this post by Terry Raymond
Terry,

Perform the following code and closely examine the upper left corner
of the rectangle. Notice that the rectangle is not closed.

Works ok for me on MacOSX 10.8.3

                                And So It Goes
                                     Sames
______________________________________________________________________

Samuel S. Shuster [|]





_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: bug - graphicsContext>>displayRectangularBorder:

jarober
In reply to this post by Terry Raymond
Works fine for me, VW 7.9.1, OS X 10.7.5


On Apr 4, 2013, at 2:51 PM, Terry Raymond wrote:

Perform the following code and closely examine the upper left corner
of the rectangle. Notice that the rectangle is not closed.
 
                | pix box gc |
                box := 0 @0 extent: 20 @ 20.
                pix := Pixmap extent: box extent.
                gc := pix graphicsContext.
                gc clear.
                gc paint: ColorValue darkGray.
                gc lineWidth: 2.
                gc displayRectangularBorder: (box insetBy: (3 @ 3 corner: 1 @ 1)).
                pix asImage inspect
 
Terry
 
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
===========================================================
 
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: bug - graphicsContext>>displayRectangularBorder:

Terry Raymond
In reply to this post by Terry Raymond

Sorry guys. It appears to be a problem with our modified VM.

 

Terry

 

===========================================================

Terry Raymond

Crafted Smalltalk

80 Lazywood Ln.

Tiverton, RI  02878

(401) 624-4517      [hidden email]

===========================================================

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Terry Raymond
Sent: Thursday, April 04, 2013 2:51 PM
To: VWNC
Subject: [vwnc] bug - graphicsContext>>displayRectangularBorder:

 

Perform the following code and closely examine the upper left corner

of the rectangle. Notice that the rectangle is not closed.

 

                | pix box gc |

                box := 0 @0 extent: 20 @ 20.

                pix := Pixmap extent: box extent.

                gc := pix graphicsContext.

                gc clear.

                gc paint: ColorValue darkGray.

                gc lineWidth: 2.

                gc displayRectangularBorder: (box insetBy: (3 @ 3 corner: 1 @ 1)).

                pix asImage inspect

 

Terry

 

===========================================================

Terry Raymond

Crafted Smalltalk

80 Lazywood Ln.

Tiverton, RI  02878

(401) 624-4517      [hidden email]

===========================================================

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc