Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2002-02-15 22:51:22 +0000
committerSilenio Quarti2002-02-15 22:51:22 +0000
commit06722a42482c77bd0654d09cae2dfcf35d2371c5 (patch)
tree24cd8487b5fc89efc1a90f8437c4e472a4ebbf55
parent47ce47f8c9f72ae228764fc4f92d4c63b02a856e (diff)
downloadeclipse.platform.swt-06722a42482c77bd0654d09cae2dfcf35d2371c5.tar.gz
eclipse.platform.swt-06722a42482c77bd0654d09cae2dfcf35d2371c5.tar.xz
eclipse.platform.swt-06722a42482c77bd0654d09cae2dfcf35d2371c5.zip
drawText API
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java
index 4578b49468..885ac0d88e 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java
@@ -1249,6 +1249,8 @@ public void drawText (String string, int x, int y, int flags) {
}
Point drawText(String text, int x, int y, int flags, boolean draw) {
+ /* NOT DONE - inline code for performance */
+
int length = text.length();
char[] buffer = new char[length];
text.getChars(0, length, buffer, 0);

Back to the top