harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-5271) [classlib][awt] Graphics drawArc & drawOval methods work incorretly in XORMode
Date Fri, 07 Dec 2007 13:34:43 GMT

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

Alexey Petrenko resolved HARMONY-5271.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0M4

The patch has been applied.
Please verify.

> [classlib][awt] Graphics drawArc & drawOval methods work incorretly in XORMode
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-5271
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5271
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Linux
>            Reporter: Igor V. Stolyarov
>            Assignee: Alexey Petrenko
>             Fix For: 5.0M4
>
>         Attachments: H-5271.patch, Harmony.PNG, RI.PNG
>
>
> Graphics drawArc & drawOval methods work incorretly in XORMode
> Simple reproducer:
> import java.io.*; 
> import java.awt.*; 
> import java.awt.image.*; 
> import javax.swing.*; 
> public class DrawArcTest extends JFrame { 
>    public static void main(String[] args){ 
>       final DrawArcTest test = new DrawArcTest(); 
>       test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
>       test.setSize(200, 200); 
>       test.add(new Panel(){
>           public void paint(Graphics g){
>               int w = getWidth();
>               int h = getHeight();
>               g.setColor(Color.green);
>               g.fillRect(0, 0, w, h);
>               g.setColor(Color.red);
>               g.setXORMode(Color.blue);
>               g.drawArc(w/4, h/4, w/2, h/2, 45, 270);
>           }
>       });
>       test.setVisible(true);
>    } 
> }

-- 
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