Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 1292 invoked from network); 27 Oct 2006 11:48:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 11:48:12 -0000 Received: (qmail 70893 invoked by uid 500); 27 Oct 2006 11:48:23 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 70856 invoked by uid 500); 27 Oct 2006 11:48:23 -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 70845 invoked by uid 99); 27 Oct 2006 11:48:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 04:48:23 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 04:48:11 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 322577142DC for ; Fri, 27 Oct 2006 04:47:08 -0700 (PDT) Message-ID: <20558577.1161949628202.JavaMail.root@brutus> Date: Fri, 27 Oct 2006 04:47:08 -0700 (PDT) From: "Dmitry A. Durnev (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-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-1652?page=all ] Dmitry A. Durnev updated HARMONY-1652: -------------------------------------- Patch Info: [Patch Available] > [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