rem: drawRelief(view);
add: drawRelief(view, tPtr->flags.beveled);
context: paintTextField(TextField *tPtr){    W_Screen *screen = tPtr->view->screen;    W_View *view = tPtr->view;    int tx, ty, tw, th;    int rx;    int bd;    int totalWidth;        if (!view->flags.realized || !view->flags.mapped)	return;    if (!tPtr->flags.bordered) {	bd = 0;    } else {	bd = 2;    }    totalWidth = tPtr->view->size.width - 2*bd;    if (tPtr->textLen > 0) {    	tw = WMWidthOfString(screen->normalFont, 			     &(tPtr->text[tPtr->viewPosition]),			     tPtr->textLen - tPtr->viewPosition);    	th = WMFontHeight(screen->normalFont);	ty = tPtr->offsetWidth;	switch (tPtr->flags.alignment) {	 case WALeft:	    tx = tPtr->offsetWidth;	    if (tw < tPtr->usableWidth)		XClearArea(screen->display, view->window, bd+tw, bd,			   totalWidth-tw, view->size.height-2*bd, 			   False);	    break;		 case WACenter:	    	    tx = tPtr->offsetWidth + (tPtr->usableWidth - tw) / 2;	    if (tw < tPtr->usableWidth)		XClearArea(screen->display, view->window, bd, bd,			   totalWidth, view->size.height-2*bd, False);	    break;	 default:	 case WARight:	    tx = tPtr->offsetWidth + tPtr->usableWidth - tw;	    if (tw < tPtr->usableWidth)		XClearArea(screen->display, view->window, bd, bd,			   totalWidth-tw, view->size.height-2*bd, False);	    break;	}	if (!tPtr->flags.secure) {	    if (!tPtr->flags.enabled)		WMSetColorInGC(screen->darkGray, screen->textFieldGC);	    WMDrawImageString(screen, view->window, screen->textFieldGC, 			      screen->normalFont, tx, ty,			      &(tPtr->text[tPtr->viewPosition]), 			      tPtr->textLen - tPtr->viewPosition);            if (tPtr->selection.count) {		int count;		count = tPtr->selection.count < 0		    ? tPtr->selection.position + tPtr->selection.count 		    : tPtr->selection.position;                rx = tx + WMWidthOfString(screen->normalFont,					  &(tPtr->text[tPtr->viewPosition]),					  count);                XSetBackground(screen->display, screen->textFieldGC, 			       screen->gray->color.pixel);		WMDrawImageString(screen, view->window, screen->textFieldGC,				  screen->normalFont, rx, ty,				  &(tPtr->text[count]),				  abs(tPtr->selection.count));                XSetBackground(screen->display, screen->textFieldGC, 			       screen->white->color.pixel);            }	    if (!tPtr->flags.enabled)		WMSetColorInGC(screen->black, screen->textFieldGC);	}    } else {	XClearArea(screen->display, view->window, bd, bd, totalWidth,		   view->size.height - 2*bd, False);    }    /* draw cursor */    if (tPtr->flags.focused && tPtr->flags.enabled && tPtr->flags.cursorOn	&& !tPtr->flags.secure) {	paintCursor(tPtr);    }        /* draw relief */    if (tPtr->flags.bordered) {	drawRelief(view);    }}