aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-06-01 10:57:59 +0000
committerSven Gothel <[email protected]>2008-06-01 10:57:59 +0000
commitf9ce69ff35c5641f5e4da423bab39b86653baeac (patch)
treeeb74312dde0c67d9cdf56f772ddd9496be9228b2
parent6ccca575ac92310b2ff2f8a495e84d754b021086 (diff)
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
-rwxr-xr-xsrc/native/jogl/X11Window.c23
1 files changed, 1 insertions, 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
@@ -225,27 +225,6 @@ JNIEXPORT jlong JNICALL Java_com_sun_javafx_newt_x11_X11Window_CreateWindow
}
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)
- {
// try default ..
visual = XDefaultVisualOfScreen(scrn);
if(visual!=NULL) {