nanogui: Thread: Re: Nano-X region code fixed and working


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Re: Nano-X region code fixed and working
From: "Greg Haerr" ####@####.####
Date: 9 Jun 2000 04:44:46 -0000
Message-Id: <00b801bfd1cd$6fcbeec0$15320cd0@gregh>

[the following message is being resent without an attachment;
it was rejected by the list server]

: the crash is because  when DYNAMICREGIONS is defined,
: it should be Allocate a new Region.

I have fixed Murphy's cool region code, and it now works
great.  There were several issues.  The biggest is that the
user clipping region needs to be intersected with the 
current clipping region, which is set in GsSetClipWindow; 
it can't be set separately.  Also, the GdSetClipRegion
code destroys the region after use, which wasn't being
done, and that's why the crash happened.  So I set another
paramater to GsSetClipWindow, which is the user clip
region, if one is set in the GC.  There were also some
issues with cached window gc's and wp's.

Another small problem was that the region id was never
initialized to 0 in the GrNewGC code.

Everything is working now, the attached patch applied
to 0.88pre8 brings up user clipping in the t1demo program.
It would be interesting to test the polygon shaped region code,
as well as round rect regions, etc.  Regions based on other
than a single rectangle might want to be implemented in
the client code in client.c rather than bringing them into the
server...

I have added the attached patch to 0.88pre8.  I will also add
all the other cool contributions, like Alex's window manager, shortly.

Regards,

Greg



Subject: Re: Nano-X region code fixed and working
From: tanghao ####@####.####
Date: 9 Jun 2000 05:58:28 -0000
Message-Id: <00060913480300.00595@tanghao.ia.ac.cn>

hi,
	
	i think it should be added a function to get the smallest rectangle
enclosing  the specified region fromGr_REGION_ID,just like XClipBox..because it
can not directly get region from clent api. 
	
regards 
				Tanghao			


 I have fixed Murphy's cool region code, and it now works
> great.  There were several issues.  The biggest is that the
> user clipping region needs to be intersected with the 
> 
> Another small problem was that the region id was never
> initialized to 0 in the GrNewGC code.
> 
> Everything is working now, the attached patch applied
> 
> Regards,
> 
> Greg
> 
> 

Subject: Re: Nano-X region code fixed and working
From: "Greg Haerr" ####@####.####
Date: 15 Jun 2000 01:27:37 -0000
Message-Id: <08da01bfd668$dc8e0120$15320cd0@gregh>

: i think it should be added a function to get the smallest rectangle
: enclosing  the specified region fromGr_REGION_ID,just like XClipBox..because
it
: can not directly get region from clent api.


I have added a GrGetRegionBox function that will return the
bounding rectangle of any region.  This will be in the 0.88pre9 release.

Regards,

Greg


Subject: Re: Nano-X region code fixed and working
From: "tanghao" ####@####.####
Date: 15 Jun 2000 02:53:57 -0000
Message-Id: <003d01bfd675$18e98ca0$ba64a8c0@tanghao>

hi,    greg
    Great ,it 's indispensable to fltk 's porting .i also added a function GrClipBox (for Xwindow call it XClipBox),
it is same to GrGetRegionBox .
    i eagerly want to see your 0.88pre9,and other things like window manager
for Nano-X.(where i can get window manager?)

    regards 
                                            tanghao
    

----- Original Message ----- 
From: "Greg Haerr" ####@####.####
To: "tanghao" ####@####.#### "Murphy Chen" ####@####.####
Cc: ####@####.####
Sent: Thursday, June 15, 2000 9:27 AM
Subject: Re: Nano-X region code fixed and working


> : i think it should be added a function to get the smallest rectangle
> : enclosing  the specified region fromGr_REGION_ID,just like XClipBox..because
> it
> : can not directly get region from clent api.
> 
> 
> I have added a GrGetRegionBox function that will return the
> bounding rectangle of any region.  This will be in the 0.88pre9 release.
> 
> Regards,
> 
> Greg
> 
Subject: Re: Nano-X region code fixed and working
From: "Greg Haerr" ####@####.####
Date: 15 Jun 2000 16:18:57 -0000
Message-Id: <095201bfd6e5$6f5ec580$15320cd0@gregh>

:     Great ,it 's indispensable to fltk 's porting .i also added a function
GrClipBox (for Xwindow call it XClipBox),
: it is same to GrGetRegionBox .

Fine.  I called it GrGetRegionBox since all of Nano-X's region routines
have xxxRegion in them.  I'm just getting around to your fltk port to Nano-X
and will be releasing an update of fltk as well (one that links with mwin32
as will as nano-X)



:     i eagerly want to see your 0.88pre9,and other things like window manager
: for Nano-X.(where i can get window manager?)

The window manager is included in 0.88pre9 and runs as bin/nanowm.  I'll
release 0.88pre9 today, I didn't quite get it finished last night.

Regards,

Greg



[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.