Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine2004-12-16 12:59:02 +0000
committerVeronika Irvine2004-12-16 12:59:02 +0000
commit561ed0e946df3adf33cc567469815224cf7419ee (patch)
tree035614c3e9bc3288e14cf8808460b0c84555a8b3 /examples
parente57a0918b6cc67cbac65fb762bfc3acb8662f44e (diff)
downloadeclipse.platform.swt-561ed0e946df3adf33cc567469815224cf7419ee.tar.gz
eclipse.platform.swt-561ed0e946df3adf33cc567469815224cf7419ee.tar.xz
eclipse.platform.swt-561ed0e946df3adf33cc567469815224cf7419ee.zip
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet168.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet168.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet168.java
index 529ba0f8fa..5b82d00289 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet168.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet168.java
@@ -34,6 +34,7 @@ public class Snippet168 {
int x = 20;
int y = 20;
int w = 120;
+ int h = 60;
int[] caps = {SWT.CAP_FLAT, SWT.CAP_ROUND, SWT.CAP_SQUARE};
for (int i = 0; i < caps.length; i++) {
gc.setLineCap(caps[i]);
@@ -43,8 +44,8 @@ public class Snippet168 {
int[] joins = {SWT.JOIN_BEVEL, SWT.JOIN_MITER, SWT.JOIN_ROUND};
for (int i = 0; i < joins.length; i++) {
gc.setLineJoin(joins[i]);
- gc.drawPolygon(new int[] {x, y, x + w/2, y + 60, x + w, y});
- y += 80;
+ gc.drawPolygon(new int[] {x, y, x + w/2, y + h, x + w, y});
+ y += h + 20;
}
}
});

Back to the top