[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
[Nano-X] diff.region3.gz
From: Murphy Chen ####@####.#### Date: 8 Jun 2000 17:46:47 -0000 Message-Id: <Pine.LNX.4.10.10006090138380.8726-100000@pc120105.ccl.itri.org.tw> > i try to use use the Wrapper api of Region .but actually it alway dump > ,when i use every original sample. i think some pointer operation may have > problem.but i don't know where.do you find the problems . > and ,i think it maybe should add the following code I've added tanghao's fix and changed MWBOOL and MWCOORD to GR_BOOL and GR_COORD. Also, I've added the file devrgn2.c which contains functions for implementing GdCreatePolygonRegion. Again, it only compiled, not been tested. Please get the new patch from http://hpc.ee.ntu.edu.tw/~murphy/diff.region3.gz Need to find out why program crashes after calling GrSetGCRegion. Murphy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [Nano-X] diff.region3.gz
From: "Greg Haerr" ####@####.#### Date: 8 Jun 2000 21:21:43 -0000 Message-Id: <022301bfd18f$d0645cb0$3017dbd0@censoft.com> : Please get the new patch from : http://hpc.ee.ntu.edu.tw/~murphy/diff.region3.gz : : Need to find out why program crashes after calling GrSetGCRegion. This patch looks well done. I'll test it tonight and try to find the problem. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [Nano-X] diff.region3.gz
From: "tanghao" ####@####.#### Date: 9 Jun 2000 02:42:10 -0000 Message-Id: <001601bfd1bc$2b3c6b60$ba64a8c0@tanghao> hi , i think i find where the problem is , and in the file "srvutil.c",function GsPrepareDrawing. the code segment Murphy added: regionp = GsFindRegion(gcp->regionid); GdSetClipRegion(pp->psd, regionp->pregion); may should change to regionp = GsFindRegion(gcp->regionid); if(regionp!=NULL) { #if DYNAMICREGIONS MWCLIPREGION * clipregion; clipregion = GdAllocRectRegion(regionp->pregion->extents.left,regionp->pregion->extents.top, regionp->pregion->extents.right, regionp->pregion->extents.bottom); if(wp) { GdSetClipRegion(wp->psd,clipregion); } else { GdSetClipRegion(pp->psd,clipregion); } #else MWCLIPRECT cliprect; cliprect.x = regionp->pregion->extents.left; cliprect.y = regionp->pregion->extents.top; cliprect.width = regionp->pregion->extents.right-regionp->pregion->extents.left; cliprect.height = regionp->pregion->extents.bottom-regionp->pregion->extents.top if(wp) GdSetClipRects(wp->psd, 1, &cliprect); else GdSetClipRects(pp->psd, 1, &cliprect); #endif } the crash is because when DYNAMICREGIONS is defined, it should be Allocate a new Region. Regards Tanghao > Need to find out why program crashes after calling GrSetGCRegion. > > Murphy > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |