Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2005-01-21 21:04:13 +0000
committerGrant Gayed2005-01-21 21:04:13 +0000
commitafd8c055b8d8ae62d8fbfedde9cc109e12857de4 (patch)
tree1b69c59b74fee044e6bc19cdf9cf3a5656bb7fe0 /examples
parent9f6904656e57e2548c8dbd5e14f977f6e35de13d (diff)
downloadeclipse.platform.swt-afd8c055b8d8ae62d8fbfedde9cc109e12857de4.tar.gz
eclipse.platform.swt-afd8c055b8d8ae62d8fbfedde9cc109e12857de4.tar.xz
eclipse.platform.swt-afd8c055b8d8ae62d8fbfedde9cc109e12857de4.zip
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet174.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet174.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet174.java
index bd38e26088..40757e51bf 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet174.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet174.java
@@ -6,8 +6,8 @@
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
- * IBM Corporation - initial API and implementation
- * Sebastian Davids
+ * Sebastian Davids - initial implementation
+ * IBM Corporation
*******************************************************************************/
package org.eclipse.swt.snippets;
@@ -33,9 +33,9 @@ public class Snippet174 {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
- shell.setText("OpenGL SWT");
+ shell.setText("OpenGL in SWT");
shell.setLayout(new FillLayout());
- final Canvas canvas = new Canvas(shell, SWT.NONE);
+ final Canvas canvas = new Canvas(shell, SWT.NO_BACKGROUND);
canvas.addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e) {
resize(canvas);
@@ -49,10 +49,10 @@ public static void main(String[] args) {
});
new Runnable() {
public void run() {
- if (canvas.isDisposed()/* || canvas.getShell() == null*/) return;
+ if (canvas.isDisposed()) return;
render();
context.swapBuffers();
- canvas.getDisplay().timerExec(100, this);
+ canvas.getDisplay().timerExec(50, this);
}
}.run();
shell.open();

Back to the top