rem: ximg = hermesConvert(context, image); #else   switch (context->vclass) { case TrueColor: ximg = image2TrueColor(context, image);
add: if (context->attribs->render_mode == RBestMatchRendering) { ximg = hermesConvert(context, image); } else { ximg = image2TrueColor(context, image); } #else  ximg = image2TrueColor(context, image); #endif
context: RConvertImage(RContext *context, RImage *image, Pixmap *pixmap){    RXImage *ximg=NULL;#ifdef XSHM    Pixmap tmp;#endif        assert(context!=NULL);    assert(image!=NULL);    assert(pixmap!=NULL);#ifdef HAVE_HERMES    ximg = hermesConvert(context, image);#else /* !HAVE_HERMES */        /* clear error message */    switch (context->vclass) {     case TrueColor:	ximg = image2TrueColor(context, image);	break;	     case PseudoColor:     case StaticColor:#ifdef BENCH	cycle_bench(1);#endif	if (context->attribs->standard_colormap_mode != RIgnoreStdColormap)	    ximg = image2StandardPseudoColor(context, image);	else	    ximg = image2PseudoColor(context, image);#ifdef BENCH	cycle_bench(0);#endif	break;     case GrayScale:     case StaticGray:	ximg = image2GrayScale(context, image);	break;    }    #endif /* !HAVE_HERMES */        if (!ximg) {	return False;    }    *pixmap = XCreatePixmap(context->dpy, context->drawable, image->width,			    image->height, context->depth);    #ifdef XSHM    if (context->flags.use_shared_pixmap && ximg->is_shared)        tmp = R_CreateXImageMappedPixmap(context, ximg);    else	tmp = None;    if (tmp) {	/*	 * We have to copy the shm Pixmap into a normal Pixmap because	 * otherwise, we would have to control when Pixmaps are freed so	 * that we can detach their shm segments. This is a problem if the	 * program crash, leaving stale shared memory segments in the	 * system (lots of them). But with some work, we can optimize	 * things and remove this XCopyArea. This will require	 * explicitly freeing all pixmaps when exiting or restarting	 * wmaker.	 */	XCopyArea(context->dpy, tmp, *pixmap, context->copy_gc, 0, 0,		  image->width, image->height, 0, 0);	XFreePixmap(context->dpy, tmp);    } else {	RPutXImage(context, *pixmap, context->copy_gc, ximg, 0, 0, 0, 0,		   image->width, image->height);    }#else /* !XSHM */    RPutXImage(context, *pixmap, context->copy_gc, ximg, 0, 0, 0, 0,	       image->width, image->height);#endif /* !XSHM */    RDestroyXImage(context, ximg);    return True;}