commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #11950] GdkGraphics2D.setStroke() does not reset cairo


From: anonymous
Subject: [commit-cp] [bugs #11950] GdkGraphics2D.setStroke() does not reset cairoSetDash
Date: Sat, 12 Feb 2005 23:23:43 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11950>

                 Summary: GdkGraphics2D.setStroke() does not reset
cairoSetDash
                 Project: classpath
            Submitted by: None
            Submitted on: Sat 02/12/2005 at 18:23
                Category: classpath
                Severity: 5 - Average
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________

Details:

gnu.java.awt.peer.gtk.GdkGraphics2D.setStroke() doesn't properly handle
simple BasicStrokes.  In the following test case, both lines are rendered
dashed:



g.setStroke(new BasicStroke(1.0f, BasicStroke.CAP_BUTT,

                            BasicStroke.JOIN_BEVEL, 10.0f,

                            new float[]{2.0f, 2.0f}, 0.0f));

g.drawLine(0, 10, 100, 10);

g.setStroke(new BasicStroke()); // remove dash

g.drawLine(0, 20, 100, 20);





The (dashes == null) path probably needs to call

cairoSetDash(new double[0], 0, 0.0);






    _______________________________________________________

This item URL is:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11950>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]