diff options
Diffstat (limited to 'examples/org.eclipse.swt.snippets/src')
-rw-r--r-- | examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet355.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet355.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet355.java index 0ffc167d82..af32e721cd 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet355.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet355.java @@ -35,7 +35,7 @@ public class Snippet355 { GC gc = e.gc; int x = 10, y = 10; gc.drawImage (image, 0, 0, width, height, x, y, width, height); - gc.drawImage (image, 0, 0, width, height, x + width, y, (int)Math.round(width * 0.5), (int)Math.round(height * 0.5)); + gc.drawImage (image, 0, 0, width, height, x+width, y, (int)Math.round(width * 0.5), (int)Math.round(height * 0.5)); gc.drawImage (image, 0, 0, width, height, x+width+(int)Math.round(width * 0.5), y, width * 2, height * 2); } }); |