You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/09/05 03:50:45 UTC

[jira] Assigned: (HARMONY-4737) [classlib][awt] The oval is drawed shifted when the line width is less or equal to 1

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

Alexey Petrenko reassigned HARMONY-4737:
----------------------------------------

    Assignee: Alexey Petrenko

> [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
>            Assignee: Alexey Petrenko
>         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.