205
206 JNIEXPORT void JNICALL
207 AWTDrawGlyphList(JNIEnv *env, jobject xtr,
208 jlong dstData, jlong gc,
209 SurfaceDataBounds *bounds, ImageRef *glyphs, jint totalGlyphs)
210 {
211 #ifndef HEADLESS
212 GC xgc, theGC;
213 XImage *theImage;
214 Pixmap thePixmap;
215 XGCValues xgcv;
216 int scan, screen;
217 AwtGraphicsConfigDataPtr cData;
218 X11SDOps *xsdo = (X11SDOps *)jlong_to_ptr(dstData);
219 jint cx1, cy1, cx2, cy2;
220
221 if (xsdo == NULL) {
222 return;
223 }
224
225 xgc = (GC)gc;
226 if (xgc == NULL) {
227 return;
228 }
229
230 screen = xsdo->configData->awt_visInfo.screen;
231 cData = getDefaultConfig(screen);
232 if (!checkPixmap(env, cData)) {
233 return;
234 }
235 theImage = cData->monoImage;
236 thePixmap = cData->monoPixmap;
237 theGC = cData->monoPixmapGC;
238
239 scan = theImage->bytes_per_line;
240
241 xgcv.fill_style = FillStippled;
242 xgcv.stipple = thePixmap;
243 xgcv.ts_x_origin = bounds->x1;
244 xgcv.ts_y_origin = bounds->y1;
245 XChangeGC(awt_display, xgc,
|
205
206 JNIEXPORT void JNICALL
207 AWTDrawGlyphList(JNIEnv *env, jobject xtr,
208 jlong dstData, jlong gc,
209 SurfaceDataBounds *bounds, ImageRef *glyphs, jint totalGlyphs)
210 {
211 #ifndef HEADLESS
212 GC xgc, theGC;
213 XImage *theImage;
214 Pixmap thePixmap;
215 XGCValues xgcv;
216 int scan, screen;
217 AwtGraphicsConfigDataPtr cData;
218 X11SDOps *xsdo = (X11SDOps *)jlong_to_ptr(dstData);
219 jint cx1, cy1, cx2, cy2;
220
221 if (xsdo == NULL) {
222 return;
223 }
224
225 xgc = (GC) jlong_to_ptr(gc);
226 if (xgc == NULL) {
227 return;
228 }
229
230 screen = xsdo->configData->awt_visInfo.screen;
231 cData = getDefaultConfig(screen);
232 if (!checkPixmap(env, cData)) {
233 return;
234 }
235 theImage = cData->monoImage;
236 thePixmap = cData->monoPixmap;
237 theGC = cData->monoPixmapGC;
238
239 scan = theImage->bytes_per_line;
240
241 xgcv.fill_style = FillStippled;
242 xgcv.stipple = thePixmap;
243 xgcv.ts_x_origin = bounds->x1;
244 xgcv.ts_y_origin = bounds->y1;
245 XChangeGC(awt_display, xgc,
|