diff options
author | Carolyn MacLeod <carolyn> | 2011-04-28 18:25:42 +0000 |
---|---|---|
committer | Carolyn MacLeod <carolyn> | 2011-04-28 18:25:42 +0000 |
commit | 43c3ac53534e21543d2adf230ed55fbab0a3c1e4 (patch) | |
tree | ee330fa0cd25e9e7c56231babe6ed5d251e6903d /examples/org.eclipse.swt.snippets/src | |
parent | b0c3aa7fe48d89e7e18eeb9e5e611ae5464f0617 (diff) | |
download | eclipse.platform.swt-43c3ac53534e21543d2adf230ed55fbab0a3c1e4.tar.gz eclipse.platform.swt-43c3ac53534e21543d2adf230ed55fbab0a3c1e4.tar.xz eclipse.platform.swt-43c3ac53534e21543d2adf230ed55fbab0a3c1e4.zip |
*** empty log message ***
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); } }); |