Just recently, I sought some advice on changing the
co-ordinates in the top LHS of the GhostView screen
from points to millimetres. The advice was this:---

--------------------------------------------

It is in callbacks.c in cb_track (The only place where the word
`mouse' appears in the source). The line is:

              sprintf(buf, app_res.locator_format, p->psx, p->psy);

I guess if you make that:

sprintf(buf, app_res.locator_format, mm(p->psx), mm(p->psy));

and put this before the function:

#define mm(x) ((int)(0.352777777778*(x)))

you're done. You have to test it yourself, however.

------------------------------------------------------

Well, I went looking for callbacks.c (using locate) but it
appears that it doesn't exist. I'm wondering whether I have
a different version of GhostView, or (much more likely) I've made
a mistake.

Has anybody any idea what I'm doing wrong?

Regards,

Bill Bennett
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to