Date: Wed, 25 Aug 2004 16:21:44 +0200
From: Hinko Kocevar <hinko.kocevar@iskramedical.si>
Subject: Re: [nanogui] ts on ipaq and nxlib

Greg Haerr wrote:
...
> get brought into the server...  In any case, submit a patch that allows
> a nano-X server startup option to read a .dat file.  If the .dat file
> doesn't exist, the error will be ignored.  This still means that your
> system may have to have a shell script to determine whether
> to run nxcal or not...
> 

OK, here are two patches. Both add new command line option and call 
corresponding xxLoadTransformData() to get transform from the file. I 
also took liberty and added more comprehensive usage() at this point.

First patch (calib.diff) links nxtransform.o with nano-X server binary 
and uses GrLoadTransformData() to obtain transform.

Second patch (calib2.diff) provides srvutil.c with GsLoadTransformData() 
function (copy-paste of GrLoadTransformData() from nxtransform.c).

Only one patch is needed for desired functionality.

I prefer second one since we don't need to link whole nxtransform object 
file into the server, only needed function, but it kind-of duplicates 
code of that particular function.

Feel free to decide for yourself.

PS: now my touchscreen works in nano-X apps as well as in fltk app I 
fast-coded :)

regards,
h

-- 
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU

	"Aì rén"	|	[Analects XII:22]

filename="calib.diff"
filename="calib2.diff"