Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2016-01-07 21:11:53 +0000
committerAndrey Loskutov2016-01-07 21:11:53 +0000
commit99e351989b664361d67301543e836c2f84860038 (patch)
treedf8aedc7fb1c36ebc78c0acc4c444652c025fdf9 /bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32
parentc98a35a24d3d416c116d748eeedb75c131d5ec31 (diff)
downloadeclipse.platform.swt-99e351989b664361d67301543e836c2f84860038.tar.gz
eclipse.platform.swt-99e351989b664361d67301543e836c2f84860038.tar.xz
eclipse.platform.swt-99e351989b664361d67301543e836c2f84860038.zip
Bug 485367 - cleaned trailing spaces in swt (win32)
Change-Id: I47413fc0f50677957d3e3269dbaca97413b56d30 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/WGL.java18
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/opengl/GLCanvas.java16
2 files changed, 17 insertions, 17 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/WGL.java b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/WGL.java
index eb910f19d6..9ce9cd645c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/WGL.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/WGL.java
@@ -12,14 +12,14 @@ package org.eclipse.swt.internal.opengl.win32;
import org.eclipse.swt.internal.*;
-public class WGL extends Platform {
+public class WGL extends Platform {
static {
Library.loadLibrary("swt-wgl");
}
-
+
public static final int WGL_FONT_LINES = 0;
public static final int WGL_FONT_POLYGONS = 1;
-
+
/* LAYERPLANEDESCRIPTOR flags */
public static final int LPD_DOUBLEBUFFER = 0x00000001;
public static final int LPD_STEREO = 0x00000002;
@@ -31,10 +31,10 @@ public class WGL extends Platform {
public static final int LPD_SWAP_EXCHANGE = 0x00000200;
public static final int LPD_SWAP_COPY = 0x00000400;
public static final int LPD_TRANSPARENT = 0x00001000;
-
+
public static final int LPD_TYPE_RGBA = 0;
public static final int LPD_TYPE_COLORINDEX = 1;
-
+
/* wglSwapLayerBuffers flags */
public static final int WGL_SWAP_MAIN_PLANE = 0x00000001;
public static final int WGL_SWAP_OVERLAY1 = 0x00000002;
@@ -67,16 +67,16 @@ public class WGL extends Platform {
public static final int WGL_SWAP_UNDERLAY13 = 0x10000000;
public static final int WGL_SWAP_UNDERLAY14 = 0x20000000;
public static final int WGL_SWAP_UNDERLAY15 = 0x40000000;
-
+
/* pixel types */
public static final int PFD_TYPE_RGBA = 0;
public static final int PFD_TYPE_COLORINDEX = 1;
-
+
/* layer types */
public static final int PFD_MAIN_PLANE = 0;
public static final int PFD_OVERLAY_PLANE = 1;
public static final int PFD_UNDERLAY_PLANE = (-1);
-
+
/* PIXELFORMATDESCRIPTOR flags */
public static final int PFD_DOUBLEBUFFER = 0x00000001;
public static final int PFD_STEREO = 0x00000002;
@@ -92,7 +92,7 @@ public class WGL extends Platform {
public static final int PFD_SWAP_LAYER_BUFFERS = 0x00000800;
public static final int PFD_GENERIC_ACCELERATED = 0x00001000;
public static final int PFD_SUPPORT_DIRECTDRAW = 0x00002000;
-
+
/* PIXELFORMATDESCRIPTOR flags for use in ChoosePixelFormat only */
public static final int PFD_DEPTH_DONTCARE = 0x20000000;
public static final int PFD_DOUBLEBUFFER_DONTCARE = 0x40000000;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/opengl/GLCanvas.java b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/opengl/GLCanvas.java
index 0225cf5890..82ab5e2ed5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/opengl/GLCanvas.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/opengl/GLCanvas.java
@@ -17,7 +17,7 @@ import org.eclipse.swt.internal.opengl.win32.*;
/**
* GLCanvas is a widget capable of displaying OpenGL content.
- *
+ *
* @see GLData
* @see <a href="http://www.eclipse.org/swt/snippets/#opengl">OpenGL snippets</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
@@ -39,7 +39,7 @@ public class GLCanvas extends Canvas {
*
* @exception IllegalArgumentException
* <ul><li>ERROR_NULL_ARGUMENT when the data is null
- * <li>ERROR_UNSUPPORTED_DEPTH when the requested attributes cannot be provided</ul>
+ * <li>ERROR_UNSUPPORTED_DEPTH when the requested attributes cannot be provided</ul>
* </ul>
*/
public GLCanvas (Composite parent, int style, GLData data) {
@@ -65,7 +65,7 @@ public GLCanvas (Composite parent, int style, GLData data) {
pfd.cAccumBlueBits = (byte) data.accumBlueSize;
pfd.cAccumAlphaBits = (byte) data.accumAlphaSize;
pfd.cAccumBits = (byte) (pfd.cAccumRedBits + pfd.cAccumGreenBits + pfd.cAccumBlueBits + pfd.cAccumAlphaBits);
-
+
//FIXME - use wglChoosePixelFormatARB
// if (data.sampleBuffers > 0) {
// wglAttrib [pos++] = WGL.WGL_SAMPLE_BUFFERS_ARB;
@@ -92,7 +92,7 @@ public GLCanvas (Composite parent, int style, GLData data) {
if (data.shareContext != null) {
WGL.wglShareLists (data.shareContext.context, context);
}
-
+
Listener listener = new Listener () {
public void handleEvent (Event event) {
switch (event.type) {
@@ -116,7 +116,7 @@ static int checkStyle(Composite parent, int style) {
/**
* Returns a GLData object describing the created context.
- *
+ *
* @return GLData description of the OpenGL context attributes
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
@@ -149,7 +149,7 @@ public GLData getGLData () {
/**
* Returns a boolean indicating whether the receiver's OpenGL context
* is the current context.
- *
+ *
* @return true if the receiver holds the current OpenGL context,
* false otherwise
* @exception SWTException <ul>
@@ -165,7 +165,7 @@ public boolean isCurrent () {
/**
* Sets the OpenGL context associated with this GLCanvas to be the
* current GL context.
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -181,7 +181,7 @@ public void setCurrent () {
/**
* Swaps the front and back color buffers.
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>

Back to the top