}
+#if 0
void
mwin__draw_bitmap (MFrame *frame, MDrawWindow win, MRealizedFace *rface,
int reverse, int x, int y,
if (bmp[j / 8] & (1 << (7 - (j % 8))))
XDrawPoint (display, (Window) win, gc, x + j, y + i);
}
+#endif
+
+void
+mwin__draw_points (MFrame *frame, MDrawWindow win, MRealizedFace *rface,
+ int intensity, MDrawPoint *points, int num)
+{
+ GCInfo *info = rface->info;
+ GC gc = info->gc[intensity];
+
+ if (!gc)
+ gc = info->gc[intensity]
+ = get_gc_for_anti_alias (frame->device, info, intensity);
+
+ XDrawPoints (FRAME_DISPLAY (frame), (Window) win, gc,
+ (XPoint *) points, num, CoordModeOrigin);
+}
void
-mwin__draw_pixmap (MFrame *frame, MDrawWindow win, MRealizedFace *rface,
+mwin__draw_bitmap (MFrame *frame, MDrawWindow win, MRealizedFace *rface,
int reverse, int x, int y,
int width, int height, int row_bytes, unsigned char *pmp,
- MDrawRegion region)
+ MDrawRegion region, int pixmap)
{
Display *display = FRAME_DISPLAY (frame);
GCInfo *info = rface->info;
for (j = 0; j < width; j++)
if (pmp[j])
{
- int intensity = reverse ? (7 - (pmp[j] >> 5)) : (pmp[j] >> 5);
- GC gc = info->gc[intensity];
+ int intensity;
+ GC gc;
+ if (pixmap)
+ intensity= reverse ? (7 - (pmp[j] >> 5)) : (pmp[j] >> 5);
+ else
+ intensity = 7;
+ gc = info->gc[intensity];
if (! gc)
gc = info->gc[intensity]
= get_gc_for_anti_alias (frame->device, info, intensity);