From b91a42fd8d1dbde58280f72866e9f5cd119a48d5 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 14 Nov 2005 20:32:17 +0000 Subject: Cleaned up access control on a few helper methods git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@447 232f8b59-042b-4e1e-8c03-345bb8c30851 --- .../com/sun/opengl/impl/windows/WindowsGLDrawable.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java b/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java index e0edfdc38..1b870d391 100644 --- a/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java +++ b/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java @@ -81,7 +81,7 @@ public abstract class WindowsGLDrawable extends GLDrawableImpl { return hdc; } - public void choosePixelFormat(boolean onscreen) { + protected void choosePixelFormat(boolean onscreen) { PIXELFORMATDESCRIPTOR pfd = null; int pixelFormat = 0; if (onscreen) { @@ -337,7 +337,7 @@ public abstract class WindowsGLDrawable extends GLDrawableImpl { pixelFormatChosen = true; } - static PIXELFORMATDESCRIPTOR glCapabilities2PFD(GLCapabilities caps, boolean onscreen) { + protected static PIXELFORMATDESCRIPTOR glCapabilities2PFD(GLCapabilities caps, boolean onscreen) { int colorDepth = (caps.getRedBits() + caps.getGreenBits() + caps.getBlueBits()); @@ -376,14 +376,14 @@ public abstract class WindowsGLDrawable extends GLDrawableImpl { return pfd; } - static PIXELFORMATDESCRIPTOR newPixelFormatDescriptor() { + protected static PIXELFORMATDESCRIPTOR newPixelFormatDescriptor() { PIXELFORMATDESCRIPTOR pfd = PIXELFORMATDESCRIPTOR.create(); pfd.nSize((short) pfd.size()); pfd.nVersion((short) 1); return pfd; } - static GLCapabilities pfd2GLCapabilities(PIXELFORMATDESCRIPTOR pfd) { + protected static GLCapabilities pfd2GLCapabilities(PIXELFORMATDESCRIPTOR pfd) { if ((pfd.dwFlags() & WGL.PFD_SUPPORT_OPENGL) == 0) { return null; } @@ -405,10 +405,10 @@ public abstract class WindowsGLDrawable extends GLDrawableImpl { return res; } - static GLCapabilities iattributes2GLCapabilities(int[] iattribs, - int[] iresults, - int niattribs, - boolean requireRenderToWindow) { + protected static GLCapabilities iattributes2GLCapabilities(int[] iattribs, + int[] iresults, + int niattribs, + boolean requireRenderToWindow) { GLCapabilities res = new GLCapabilities(); for (int i = 0; i < niattribs; i++) { switch (iattribs[i]) { -- cgit v1.2.3