diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/opengl/GLCanvas.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/opengl/GLCanvas.java | 10 |
1 files changed, 5 insertions, 5 deletions
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 39b6350898..2bb80554dd 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 @@ -26,7 +26,7 @@ import org.eclipse.swt.internal.opengl.win32.*; */ public class GLCanvas extends Canvas { - int /*long*/ context; + long /*int*/ context; int pixelFormat; static final String USE_OWNDC_KEY = "org.eclipse.swt.internal.win32.useOwnDC"; //$NON-NLS-1$ /** @@ -76,7 +76,7 @@ public GLCanvas (Composite parent, int style, GLData data) { // wglAttrib [pos++] = data.samples; // } - int /*long*/ hDC = OS.GetDC (handle); + long /*int*/ hDC = OS.GetDC (handle); pixelFormat = WGL.ChoosePixelFormat (hDC, pfd); if (pixelFormat == 0 || !WGL.SetPixelFormat (hDC, pixelFormat, pfd)) { OS.ReleaseDC (handle, hDC); @@ -128,7 +128,7 @@ public GLData getGLData () { GLData data = new GLData (); PIXELFORMATDESCRIPTOR pfd = new PIXELFORMATDESCRIPTOR (); pfd.nSize = (short) PIXELFORMATDESCRIPTOR.sizeof; - int /*long*/ hDC = OS.GetDC (handle); + long /*int*/ hDC = OS.GetDC (handle); WGL.DescribePixelFormat (hDC, pixelFormat, PIXELFORMATDESCRIPTOR.sizeof, pfd); OS.ReleaseDC (handle, hDC); data.doubleBuffer = (pfd.dwFlags & WGL.PFD_DOUBLEBUFFER) != 0; @@ -174,7 +174,7 @@ public boolean isCurrent () { public void setCurrent () { checkWidget (); if (WGL.wglGetCurrentContext () == context) return; - int /*long*/ hDC = OS.GetDC (handle); + long /*int*/ hDC = OS.GetDC (handle); WGL.wglMakeCurrent (hDC, context); OS.ReleaseDC (handle, hDC); } @@ -189,7 +189,7 @@ public void setCurrent () { */ public void swapBuffers () { checkWidget (); - int /*long*/ hDC = OS.GetDC (handle); + long /*int*/ hDC = OS.GetDC (handle); WGL.SwapBuffers (hDC); OS.ReleaseDC (handle, hDC); } |