[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
[Nano-X] GrNewPolygonRegion
From: Murphy Chen ####@####.#### Date: 12 Jun 2000 13:08:40 -0000 Message-Id: <Pine.LNX.4.10.10006122102290.19667-100000@pc120105.ccl.itri.org.tw> Dear All, Based on Greg's new patch for clipping regions, I've added the new function: GR_REGION_ID GrNewPolygonRegion(int mode, GR_COUNT count, GR_POINT *points); But the function is still buggy. I tried to trace the bug, and found it seems to lie in the function REGION_InsertionSort. http://hpc.ee.ntu.edu.tw/~murphy/diff.region4.gz With regards, Murphy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [Nano-X] GrNewPolygonRegion
From: "Greg Haerr" ####@####.#### Date: 13 Jun 2000 08:06:39 -0000 Message-Id: <05f101bfd50e$48266f00$15320cd0@gregh> : GR_REGION_ID GrNewPolygonRegion(int mode, GR_COUNT count, GR_POINT *points); : : But the function is still buggy. : I tried to trace the bug, and found it seems to lie in the function : REGION_InsertionSort. I've added all this into the source tree. There were a couple of problems. One, the function wasn't added into the Wrapper list in srvnet.c. Now polygon regions work fine if the application is linked with the server. Otherwise, the GR_POINT values are corrupted when sent from client to server and the server dies. I should have this debugged shortly. (The nxproto.h states that variable size client/server packets must be handed padded; I added this but it's still broken) Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [Nano-X] GrNewPolygonRegion
From: "Greg Haerr" ####@####.#### Date: 13 Jun 2000 08:21:10 -0000 Message-Id: <05f801bfd510$106c76c0$15320cd0@gregh> : Now polygon regions work fine if the application is linked with : the server. Otherwise, the GR_POINT values are corrupted when : sent from client to server and the server dies. I should have this debugged : shortly. (The nxproto.h states that variable size client/server packets : must be handed padded; I added this but it's still broken) It's working now. The problem was that the NewPolygonRegion request packet wasn't hand-padded to a 4 byte boundary. This is required to ensure that the variable length data starts on a 4 byte boundary, for alignment reasons. I've been busy adding the many contributions, and am planning another cut shortly. (we now have arcs, pies, outlined arcs, as well as a listbox, edit and progress bar for win32, as well as arcs, pies, regions and a window manager for nano-X.) Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |