You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Chunrong Lai (JIRA)" <ji...@apache.org> on 2008/01/08 03:18:34 UTC

[jira] Created: (HARMONY-5372) [classlib][awt]Harmony has more reDraw in Linux

[classlib][awt]Harmony has more reDraw in Linux
-----------------------------------------------

                 Key: HARMONY-5372
                 URL: https://issues.apache.org/jira/browse/HARMONY-5372
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Linux32
            Reporter: Chunrong Lai



 I see Harmony has redundant reDrawing in Linux while it is OK in Windows.
 A simple way to reproduce it is that we can add printing in awt/src/main/java/common/org/apache/harmony/awt/text/TextUtils.drawString and rebuild Harmony before using it to run demo.jfc.NotePad and type some characters. It is just observed the type characters are drawn again and again unnecessarily. Although it may not impact the correctness I believe it makes Harmony execute slowly for GUI applications in Linux.

    private static void drawString(final String text, final boolean needDraw,
                                   final Graphics g,
                                   final int x, final int y) {
        System.out.println("drawString " + text + " with needDraw " + needDraw); //the added log printing
        if (needDraw) {
            g.drawString(text, x, y);
        }
    }
 

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