RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) (10/28/87)
Date: Tue 27 Oct 1987 14:22:43 EST From: David Rosenthal <dshr@Sun.COM> SYNOPSIS: miRectsToRegion() uses the wrong constants to determine the state of the rectlist. DESCRIPTION: miRectsToRegion() uses the protocol constants, such as Unsorted, where it should be using the clip type constants, such as CT_UNSORTED. FIX: in server/ddx/mi/misetclip.c: *** /tmp/,RCSt1006664 Wed Oct 28 11:55:13 1987 --- misetclip.c Wed Oct 28 11:54:49 1987 *************** *** 21,27 **** SOFTWARE. ******************************************************************/ ! /* $Header: misetclip.c,v 1.4 87/09/11 07:20:53 toddb Exp $ */ /* Author: Todd Newman */ #include "X.h" --- 21,27 ---- SOFTWARE. ******************************************************************/ ! /* $Header: misetclip.c,v 1.5 87/10/28 11:54:23 rws Exp $ */ /* Author: Todd Newman */ #include "X.h" *************** *** 119,125 **** return NullRegion; } ! if (ordering == YXBanded) { pReg->rects = (BoxPtr)Xrealloc(pReg->rects, nrects * sizeof(BoxRec)); pbox = pReg->rects; --- 119,125 ---- return NullRegion; } ! if (ordering == CT_YXBANDED) { pReg->rects = (BoxPtr)Xrealloc(pReg->rects, nrects * sizeof(BoxRec)); pbox = pReg->rects; *************** *** 154,160 **** * boxes are of other sizes */ while(count--) { ! if(ordering == Unsorted) { /* We have to search from the top, otherwise we know no * box will be before the current one */ --- 154,160 ---- * boxes are of other sizes */ while(count--) { ! if(ordering == CT_UNSORTED) { /* We have to search from the top, otherwise we know no * box will be before the current one */