From ef7fea20ab48cbaf93697fa886ee1fea2e1528ab Mon Sep 17 00:00:00 2001 From: Caspian Rychlik-Prince Date: Wed, 16 Feb 2005 16:48:26 +0000 Subject: [PATCH] *** empty log message *** --- src/native/win32/org_lwjgl_opengl_AWTGLCanvas.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/native/win32/org_lwjgl_opengl_AWTGLCanvas.c b/src/native/win32/org_lwjgl_opengl_AWTGLCanvas.c index 1388ae40..c9ff2009 100644 --- a/src/native/win32/org_lwjgl_opengl_AWTGLCanvas.c +++ b/src/native/win32/org_lwjgl_opengl_AWTGLCanvas.c @@ -44,6 +44,9 @@ #include "org_lwjgl_opengl_AWTGLCanvas.h" extern bool createARBContextAndPixelFormat(JNIEnv *env, HDC hdc, jobject pixel_format, int *pixel_format_index_return, HGLRC *context_return); +extern int findPixelFormatARB(JNIEnv *env, HDC hdc, jobject pixel_format, jobject pixelFormatCaps, bool use_hdc_bpp, bool window, bool pbuffer, bool double_buffer); +extern int findPixelFormat(JNIEnv *env, HDC hdc, jobject pixel_format); +extern bool applyPixelFormat(HDC hdc, int iPixelFormat); /* * Grab the context from the incoming AWTGLCanvas and return it @@ -202,10 +205,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_AWTGLCanvas_nDestroyContext JAWT_Win32DrawingSurfaceInfo* dsi_win; jboolean result; HGLRC hglrc; - BOOL mcResult; - LPVOID lpMsgBuf; - jclass cls_AWTGLCanvas; - jmethodID mid_doPaint; // Get the AWT awt.version = JAWT_VERSION_1_4;