[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: cannot see older schematics content with gschem 20041228 (Mac OS X)
On Fri, 07 Jan 2005 11:08:35 -0500, Ales Hvezda <ahvezda@xxxxxxxxxxxxxx> wrote:
> >Where is the world-to-screen coordinate transformation implemented?
>
> It's primarily in libgeda/noweb/m_basic.nw
I applied this patch:
--- libgeda-20041228/src/g_rc.c.orig 2004-12-28 23:06:52.000000000 -0500
+++ libgeda-20041228/src/g_rc.c 2005-01-07 16:01:33.000000000 -0500
@@ -626,7 +626,7 @@ SCM g_rc_world_size(SCM width, SCM heigh
PAPERSIZEtoWORLD(i_width, i_height, i_border, &init_right, &init_bottom);
-#if DEBUG
+#if DEBUG || 1
printf("%d %d\n", i_width, i_height);
printf("%d %d\n", init_right, init_bottom);
#endif
and I get the following output when starting gschem:
120000 90000
121000 90750
which is in the ballpark for the world size specified in gschemrc.
But when I try and place a component in the upper right portion of the
world, I get the same results-- the most I can zoom out is to
~(24000,18000).
> Also you asked about debugging. The fastest and easiest way
> is to remove all the #pline from the C source and rebuild and then debug.
>
> I use the following quick hack script to do this:
>
> -- cut here --
>
> #!/bin/sh
>
> for i in *.c
> do
> echo $i
> mv $i $i.tmp
> cat $i.tmp | sed "s%^#line%//%" > $i
> rm -f $i.tmp
> done
this had to be done:
perl -pi -e 's%^#line%//%' *.c
:-)
--
- Charles Lepple