From: <wj...@Th...> - 2001-10-04 13:29:43
|
I've got the GLJPanel samples working on 98, NT, and 2000 (all laptops with varying quality video cards). I had to pull down the number of colors on the display down to 256 colors on some of them (not sure how strong the video cards are). I assume this is the issue? Anyway, when the numColors is too high, the error is very cryptic. Line 234(?) fails with the "setpixel failed" message. A better message would be in order, I suppose. I'm kind of new at this, I don't see why this order of calls should EVER fail (these are in SetDCPixelFormat): ChoosePixelFormat SetPixelFormat but it does! So if you get the "setpixel failed" message, try reducing the number of colors and the samples will work. Bill K "Kenneth B. Russell" <kbr...@al...> To: wj...@th... Sent by: cc: gl4...@li..., gl4...@li...urc gl4...@li... eforge.net Subject: Re: [gl4java-usergroup] GLJPanel Under Windows 2000 10/04/2001 08:20 AM Please respond to kbrussel > I am trying to get the GLJPanel working on Windows... Thanks for the clear bug report. This patch should fix the problem. Will be checked in to the cvs tree shortly. >cvs diff -c OpenGL_Win32_jawt.c Index: OpenGL_Win32_jawt.c =================================================================== RCS file: /cvsroot/gl4java/GL4Java/GL4Java/CNativeCode/OpenGL_Win32_jawt.c,v retrieving revision 1.5 diff -c -r1.5 OpenGL_Win32_jawt.c *** OpenGL_Win32_jawt.c 2001/07/24 12:07:18 1.5 --- OpenGL_Win32_jawt.c 2001/10/04 06:19:09 *************** *** 426,431 **** --- 426,435 ---- return JNI_FALSE; } + if (joffScreenRenderer) { + pData->dsi_win = theWindow; + } + /* fetch the states of doubleBuffer and stereo */ (void) PixelFormatDescriptorFromDc( theWindow, &pfd); _______________________________________________ gl4java-usergroup mailing list gl4...@li... https://lists.sourceforge.net/lists/listinfo/gl4java-usergroup |