[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] RFC: GdkGraphics fix
From: |
Lillian Angel |
Subject: |
[cp-patches] RFC: GdkGraphics fix |
Date: |
Mon, 21 Nov 2005 14:33:44 -0500 |
This fixes bug # 24937
I spoke in detail to Roman about this.
drawString(String...) was changed to call
drawString(AttributedCharacterIterator...) because they both need to
ignore the newline characters.
drawString(AttributedCharacterIterator...) iterates through the
characters and stores the non-newline chars in an array. Here Roman
suggested that I make some changes and pass the char[] to the native
drawString function because allocating a new String is not ideal.
I tried doing this, but that native function calls getStringUTFChars
(which requires a jstring). Removing the call to getStringUTFChars
obviously does not work...
The best way to do this right now (since
drawString(AttributedCharacterIterator...) is not fully implemented), is
creating a new String, like I have done in this patch, or call
replaceAll("\n", "") on the String. replaceAll does a lot of unnecessary
things, so I avoided using it.
Can someone please look over this patch and let me know if it is okay to
commit?
Thanks!
2005-11-21 Lillian Angel <address@hidden>
PR classpath/PR24937
* gnu/java/awt/peer/gtk/GdkGraphics.java
(drawString): Changed to call drawString with
AttributedCharacterIterator.
(drawString): Partially implemented to iterate through
the characters, removing all newlines. Now newlines are
not drawn.
patch.diff
Description: Text Data
- [cp-patches] RFC: GdkGraphics fix,
Lillian Angel <=
- Re: [cp-patches] RFC: GdkGraphics fix, Thomas Fitzsimmons, 2005/11/21
- Re: [cp-patches] RFC: GdkGraphics fix, Lillian Angel, 2005/11/21
- Re: [cp-patches] FYI: GdkGraphics fix, Lillian Angel, 2005/11/21
- Re: [cp-patches] FYI: GdkGraphics fix, Mark Wielaard, 2005/11/21
- Message not available
- Re: [cp-patches] FYI: GdkGraphics fix, Lillian Angel, 2005/11/22
- Re: [cp-patches] FYI: GdkGraphics fix, Lillian Angel, 2005/11/22
- Re: [cp-patches] FYI: GdkGraphics fix, Christian Thalinger, 2005/11/25
- Re: [cp-patches] FYI: GdkGraphics fix, Mark Wielaard, 2005/11/25
- Re: [cp-patches] FYI: GdkGraphics fix, Tom Tromey, 2005/11/25
- Re: [cp-patches] FYI: GdkGraphics fix, Lillian Angel, 2005/11/25