Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 1360 invoked from network); 3 Oct 2006 14:21:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Oct 2006 14:21:30 -0000 Received: (qmail 58164 invoked by uid 500); 3 Oct 2006 14:21:30 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 58136 invoked by uid 500); 3 Oct 2006 14:21:30 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 58125 invoked by uid 99); 3 Oct 2006 14:21:30 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2006 07:21:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:54280] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id F0/20-08153-9E172254 for ; Tue, 03 Oct 2006 07:21:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 96ED571431A for ; Tue, 3 Oct 2006 07:21:20 -0700 (PDT) Message-ID: <5591238.1159885280615.JavaMail.root@brutus> Date: Tue, 3 Oct 2006 07:21:20 -0700 (PDT) From: "Oleg Khaschansky (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1652) [classlib][awt] Graphics doesn't draw image if clip is set to null In-Reply-To: <43635.1159780639544.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1652?page=all ] Oleg Khaschansky updated HARMONY-1652: -------------------------------------- Attachment: harmony-1652-linux.patch Patch for the linux issue, rev. 452351. > [classlib][awt] Graphics doesn't draw image if clip is set to null > ------------------------------------------------------------------ > > Key: HARMONY-1652 > URL: http://issues.apache.org/jira/browse/HARMONY-1652 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Windows > Reporter: Dmitry A. Durnev > Priority: Minor > Attachments: H1652-fix.patch, harmony-1652-linux.patch > > > Compile & run the following test: > import java.awt.Color; > import java.awt.Frame; > import java.awt.Graphics; > import java.awt.Image; > import java.awt.Insets; > import java.awt.image.BufferedImage; > public class DrawImageTest { > public static void main(String[] args) { > Frame f = new Frame("draw image test"){ > > public void paint(Graphics g) { > g.setClip(null); > Insets ins = getInsets(); > g.drawImage(getBufImg(50), ins.left, ins.top, null); > } > }; > f.setSize(100, 100); > f.show(); > } > > static Image getBufImg(int size) { > final BufferedImage img = new BufferedImage(size, size, > BufferedImage.TYPE_INT_ARGB); > Graphics g = img.getGraphics(); > g.setColor(Color.RED); > g.fillRect(0, 0, size, size); > return img; > } > } > On RI image (red square of size 50x50 pixels) appears in the upper-left corner of the window. > On Harmony(for example the last snapshot - r450941) no image appears at all. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira