harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy Matveev (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4737) [classlib][awt] The oval is drawed shifted when the line width is less or equal to 1
Date Tue, 04 Sep 2007 23:22:44 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmitriy Matveev updated HARMONY-4737:
-------------------------------------

    Attachment: DrawOval.patch

> [classlib][awt] The oval is drawed shifted when the line width is less or equal to 1
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4737
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4737
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Dmitriy Matveev
>         Attachments: DrawOval.patch
>
>
> The reproducer is below:
> import java.awt.Frame;
> import java.awt.Graphics;
> import java.awt.Graphics2D;
> import java.awt.event.WindowAdapter;
> import java.awt.event.WindowEvent;
> public class DrawOvalTest {
>     public static void main(String[] args) {
>         Frame f = new Frame() {
>             public void paint(Graphics g) {
>                 Graphics2D g2d = (Graphics2D) g;
>                 g2d.drawOval(100,100,20,20);
>                 g2d.drawRect(100,100,20,20);
>             }
>         };
>         f.setBounds(0, 0, 800, 600);
>         f.setVisible(true);
>         f.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent ev) {
>                 System.exit(0);
>             }
>         });
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message