From f9ce69ff35c5641f5e4da423bab39b86653baeac Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 1 Jun 2008 10:57:59 +0000 Subject: wip git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1658 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/native/jogl/X11Window.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/native/jogl/X11Window.c b/src/native/jogl/X11Window.c index 54f28f2a1..f4d9872d4 100755 --- a/src/native/jogl/X11Window.c +++ b/src/native/jogl/X11Window.c @@ -44,7 +44,7 @@ #include "MouseEvent.h" #include "KeyEvent.h" -#define VERBOSE_ON 1 +// #define VERBOSE_ON 1 #ifdef VERBOSE_ON @@ -221,27 +221,6 @@ JNIEXPORT jlong JNICALL Java_com_sun_javafx_newt_x11_X11Window_CreateWindow } #ifdef VERBOSE_ON fprintf(stderr, "trying given (screen %d, visualID: %d) found: %p\n", scrn_idx, visualID, visual); -#endif - } - if (visual==NULL) - { - // try depth >=15 on screen - memset(&visualTemplate, 0, sizeof(XVisualInfo)); - visualTemplate.class = TrueColor; - //visualTemplate.screen = scrn_idx; - visualTemplate.depth = 16; - visualTemplate.bits_per_rgb = 5; - pVisualQuery = XGetVisualInfo(dpy, VisualClassMask|VisualDepthMask|VisualBitsPerRGBMask, &visualTemplate,&n); - DUMP_VISUAL_INFO("Given ScreenIdx, depth>=15, bpp:15", pVisualQuery); - if(pVisualQuery!=NULL) { - visual = pVisualQuery->visual; - depth = pVisualQuery->depth; - visualID = pVisualQuery->visualid; - XFree(pVisualQuery); - pVisualQuery=NULL; - } -#ifdef VERBOSE_ON - fprintf(stderr, "trying (screen %d, depth >= 15, rgb >=15) found: %p, id: %d\n", scrn_idx, visual, visualID); #endif } if (visual==NULL) -- cgit v1.2.3