rem: int i;
context: paintItem(List *lPtr, int index){    WMView *view = lPtr->view;    W_Screen *scr = view->screen;    int width, height, x, y;    WMListItem *itemPtr;    int i;    i = index;    itemPtr = lPtr->items;    while (i-- > 0)	itemPtr = itemPtr->nextPtr;    width = lPtr->view->size.width - 2 - 19;    height = lPtr->itemHeight;    x = 19;    y = 2 + (index-lPtr->topItem) * lPtr->itemHeight + 1;    if (lPtr->flags.userDrawn) {	WMRect rect;	int flags;	rect.size.width = width;	rect.size.height = height;	rect.pos.x = x;	rect.pos.y = y;	flags = itemPtr->uflags;	if (itemPtr->disabled)	    flags |= WLDSDisabled;	if (itemPtr->selected)	    flags |= WLDSSelected;	if (itemPtr->isBranch)	    flags |= WLDSIsBranch;	if (lPtr->draw)	    (*lPtr->draw)(lPtr, index, view->window, itemPtr->text, flags, 			  &rect);    } else {	if (itemPtr->selected)	    XFillRectangle(scr->display, view->window, WMColorGC(scr->white), x, y,			   width, height);	else	    XClearArea(scr->display, view->window, x, y, width, height, False);		W_PaintText(view, view->window, scr->normalFont,  x+4, y, width,		    WALeft, WMColorGC(scr->black), False, 		    itemPtr->text, strlen(itemPtr->text));    }}