66 getGraphicsConfigFromComponentPeer(JNIEnv *env, jobject this);
67 extern struct X11GraphicsConfigIDs x11GraphicsConfigIDs;
68
69 static int X11SD_FindClip(SurfaceDataBounds *b, SurfaceDataBounds *bounds,
70 X11SDOps *xsdo);
71 static int X11SD_ClipToRoot(SurfaceDataBounds *b, SurfaceDataBounds *bounds,
72 X11SDOps *xsdo);
73 static void X11SD_SwapBytes(X11SDOps *xsdo, XImage *img, int depth, int bpp);
74 static XImage * X11SD_GetImage(JNIEnv *env, X11SDOps *xsdo,
75 SurfaceDataBounds *bounds,
76 jint lockFlags);
77
78 extern jfieldID validID;
79
80 static int nativeByteOrder;
81 static jclass xorCompClass;
82
83 jint useMitShmExt = CANT_USE_MITSHM;
84 jint useMitShmPixmaps = CANT_USE_MITSHM;
85 jint forceSharedPixmaps = JNI_FALSE;
86 int mitShmPermissionMask = MITSHM_PERM_OWNER;
87
88 /* Cached shared image, one for all surface datas. */
89 static XImage * cachedXImage;
90
91 #endif /* !HEADLESS */
92
93 jboolean XShared_initIDs(JNIEnv *env, jboolean allowShmPixmaps)
94 {
95 #ifndef HEADLESS
96 union {
97 char c[4];
98 int i;
99 } endian;
100
101 endian.i = 0xff000000;
102 nativeByteOrder = (endian.c[0]) ? MSBFirst : LSBFirst;
103
104 cachedXImage = NULL;
105
106 if (sizeof(X11RIPrivate) > SD_RASINFO_PRIVATE_SIZE) {
|
66 getGraphicsConfigFromComponentPeer(JNIEnv *env, jobject this);
67 extern struct X11GraphicsConfigIDs x11GraphicsConfigIDs;
68
69 static int X11SD_FindClip(SurfaceDataBounds *b, SurfaceDataBounds *bounds,
70 X11SDOps *xsdo);
71 static int X11SD_ClipToRoot(SurfaceDataBounds *b, SurfaceDataBounds *bounds,
72 X11SDOps *xsdo);
73 static void X11SD_SwapBytes(X11SDOps *xsdo, XImage *img, int depth, int bpp);
74 static XImage * X11SD_GetImage(JNIEnv *env, X11SDOps *xsdo,
75 SurfaceDataBounds *bounds,
76 jint lockFlags);
77
78 extern jfieldID validID;
79
80 static int nativeByteOrder;
81 static jclass xorCompClass;
82
83 jint useMitShmExt = CANT_USE_MITSHM;
84 jint useMitShmPixmaps = CANT_USE_MITSHM;
85 jint forceSharedPixmaps = JNI_FALSE;
86
87 #ifdef MITSHM
88 int mitShmPermissionMask = MITSHM_PERM_OWNER;
89 #endif
90
91 /* Cached shared image, one for all surface datas. */
92 static XImage * cachedXImage;
93
94 #endif /* !HEADLESS */
95
96 jboolean XShared_initIDs(JNIEnv *env, jboolean allowShmPixmaps)
97 {
98 #ifndef HEADLESS
99 union {
100 char c[4];
101 int i;
102 } endian;
103
104 endian.i = 0xff000000;
105 nativeByteOrder = (endian.c[0]) ? MSBFirst : LSBFirst;
106
107 cachedXImage = NULL;
108
109 if (sizeof(X11RIPrivate) > SD_RASINFO_PRIVATE_SIZE) {
|