diff options
author | Felipe Heidrich <fheidric> | 2006-01-06 21:38:41 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2006-01-06 21:38:41 +0000 |
commit | b35f1ecb3953784cc631c1fbc11e0aed04d68303 (patch) | |
tree | 9c6c5c46c537f4b6889d5b6395055caed390d2cf | |
parent | 0ecb4302b1f027bad17a4cf52d929651d8433c1e (diff) | |
download | eclipse.platform.swt-b35f1ecb3953784cc631c1fbc11e0aed04d68303.tar.gz eclipse.platform.swt-b35f1ecb3953784cc631c1fbc11e0aed04d68303.tar.xz eclipse.platform.swt-b35f1ecb3953784cc631c1fbc11e0aed04d68303.zip |
121507
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/TextLayout.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/TextLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/TextLayout.java index f3c5cfa3c8..726c9c98d2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/TextLayout.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/TextLayout.java @@ -295,12 +295,12 @@ void computeRuns() { int runLength = translateOffset(styles[i + 1].start) - start; OS.ATSUSetRunStyle(layout, run.atsuStyle, start, runLength); } - int ptr = OS.NewPtr(4); - buffer[0] = OS.Long2Fix(indent); - OS.memcpy(ptr, buffer, 4); - int[] tags = new int[]{OS.kATSUImposeWidthTag}; - int[] sizes = new int[]{4}; - int[] values = new int[]{ptr}; + int ptr = OS.NewPtr(12); + buffer = new int[]{OS.Long2Fix(indent), 0, 0}; + OS.memcpy(ptr, buffer, 12); + int[] tags = new int[]{OS.kATSUImposeWidthTag, OS.kATSUAscentTag, OS.kATSUDescentTag}; + int[] sizes = new int[]{4, 4, 4}; + int[] values = new int[]{ptr, ptr + 4, ptr + 8}; OS.ATSUCreateStyle(buffer); indentStyle = buffer[0]; OS.ATSUSetAttributes(indentStyle, tags.length, tags, sizes, values); |