From 99e351989b664361d67301543e836c2f84860038 Mon Sep 17 00:00:00 2001 From: Andrey Loskutov Date: Thu, 7 Jan 2016 22:11:53 +0100 Subject: Bug 485367 - cleaned trailing spaces in swt (win32) Change-Id: I47413fc0f50677957d3e3269dbaca97413b56d30 Signed-off-by: Andrey Loskutov --- .../org/eclipse/swt/internal/opengl/win32/WGL.java | 18 +++++++++--------- .../win32/org/eclipse/swt/opengl/GLCanvas.java | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32') 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 OpenGL snippets * @see Sample code and further information @@ -39,7 +39,7 @@ public class GLCanvas extends Canvas { * * @exception IllegalArgumentException * + *
  • ERROR_UNSUPPORTED_DEPTH when the requested attributes cannot be provided * */ 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