🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.sources.d
Article #101

Re: xdvi-16jgs(0) (Re: xdvi-14jgs)

#101
From: Go KIMOTO
Date: Tue, 29 Sep 1992 16:03
116 lines
3919 bytes
$BLZK\9k!wC^GHBg3X$H?=$7$^$9!#(B

In article <MARUYAMA.92Sep29185813@sunnm.ism.ac.jp>,
	maruyama@sunnm.ism.ac.jp (MARUYAMA Naomasa) says:

$B!d(B 3. $B<!$N%5%s%W%k$G?^A4BN$r0O$&;M3Q$$OH$N1&$N=D$N@~$,=P$^$;$s!#$3$l$O(B

$B$3$l$O?9ED;a$b8@$C$F$$$^$9$,!"4]$a8m:9$N$;$$$G$9!#(B
 <HIRO.92Sep23164046@skywalker.jaist-east.ac.jp>

$B$3$l$KBP$9$k%/%$%C%/%O%C%/$N%Q%C%A$r$3$N5-;v$N:G8e$K$D$1$^$9!#(B

$B$?$@$7!";d$,:n$C$?%Q%C%A$O(B
$B!V(Bfloat $B$r(B int $B$K%-%c%9%H$9$k;~$O@Z<N$F$K$J$k!W(B
$B$3$H$r2>Dj$7$F$$$k$N$G!"$b$7$=$&$G$J$$%3%s%Q%$%i$r(B
$B;H$&>l9g$OJL$NJ}K!$r9M$($F$/$@$5$$!#(B


$B$=$l$+$i!"$^$?JL$NOC$G$9$,!'(B

In article <E64022A.92Sep25184714@ccsparc01.center.osaka-u.ac.jp>,
	e64022a@center.osaka-u.ac.jp (MASUTANI Yasuhiro) says:

$B!d(B         argv[i++] = gs-> psfile;
$B!d(B +       argv[i++] = "-";
$B!d(B         argv[i++] = NULL;

$B!d(B $B$N0l9T$rDI2C$9$k$@$1$G$$$$$o$1$G$9$M!%0l8+MnCe!%(B

$B$3$l$O(B

$B!d(B +       argv[i++] = "-";

$B$G$O$J$/!"(B

$B!d(B +       argv[i++] = "quit.ps";

$B$NJ}$,$$$$$G$7$g$&!#(B
$B2<$N%Q%C%A$H9g$o$;$F$3$N(B quit.ps $B$N;XDj$b$$$l$F$/$@$5$$!#(B


--
$BLZK\9k!w$7$E$4$3$m$J$/%Q%C%A$N$H$S$+$&$i$s(B


*** ../xdvi.senda/gs-view.c	Wed Sep 30 00:07:06 1992
--- gs-view.c	Wed Sep 30 00:10:21 1992
***************
*** 32,37 ****
--- 34,54 ----
      Atom	GS_PAGE;
  };
  
+ int
+ round(x)
+ float x;
+ {
+   if (x > 0)
+     return (int) ( x + 0.5);
+   else
+     return (int) ( x - 0.5);
+ /*  if (x > 0)
+     return (int) ( x + ( 1 - (int) 0.5) / 2.0);
+   else
+     return (int) ( x + (-1 - (int)(-0.5)) / 2.0);
+ */
+ }
+ 
  static Boolean	check_gs_event(disp, event, props)
   Display*	disp;
   XEvent*	event;
***************
*** 57,63 ****
      char	param[BUFSIZ];
  
      sprintf(param, "0 0 %d %d %d %d %f %f 0 0 0 0 %d %d",
! 	    (int)gs-> llx, (int)gs-> lly, (int)gs-> urx, (int)gs-> ury,
  	    gs-> width  / ((gs-> urx - gs-> llx) / 72.0),
  	    gs-> height / ((gs-> ury - gs-> lly) / 72.0),
  	    gs-> width, gs-> height);
--- 74,81 ----
      char	param[BUFSIZ];
  
      sprintf(param, "0 0 %d %d %d %d %f %f 0 0 0 0 %d %d",
! 	    round(gs-> llx ), round(gs-> lly ),
! 	    round(gs-> urx ), round(gs-> ury ),
  	    gs-> width  / ((gs-> urx - gs-> llx) / 72.0),
  	    gs-> height / ((gs-> ury - gs-> lly) / 72.0),
  	    gs-> width, gs-> height);
*** xdvi.senda/xdvi.c	Wed Sep 30 00:07:08 1992
--- xdvi.gs/xdvi.c	Wed Sep 30 00:26:25 1992
***************
*** 848,857 ****
  
      gs.psfile = psfile-> filename;
  
!     gs.width  = (psfile-> urx - psfile-> llx) * psfile-> hscale / 72.0
!       * specialConv * 1000.0 / shrink_factor;
!     gs.height = (psfile-> ury - psfile-> lly) * psfile-> vscale / 72.0
!       * specialConv * 1000.0 / shrink_factor;
  
      if (use_ps_special) {
  	gs.pix = get_cached_psfig(gs.psfile, gs.width, gs.height);
--- 846,857 ----
  
      gs.psfile = psfile-> filename;
  
!     gs.width  = (unsigned int) ( 1.0 + (psfile-> urx - psfile-> llx) *
! 				psfile-> hscale / 72.0
! 				* specialConv * 1000.0 / shrink_factor);
!     gs.height = (unsigned int) ( 1.0 + (psfile-> ury - psfile-> lly) *
! 				psfile-> vscale / 72.0
! 				* specialConv * 1000.0 / shrink_factor);
  
      if (use_ps_special) {
  	gs.pix = get_cached_psfig(gs.psfile, gs.width, gs.height);
Technical Details
Message-ID: <9009@coins.is.tsukuba.ac.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!s.u-tokyo!kekux!crimson!ume!is.tsukuba.ac.jp!coins!kimoto
References: <HIRO.92Sep23164046@skywalker.jaist-east.ac.jp> <MARUYAMA.92Sep29185813@sunnm.ism.ac.jp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!s.u-tokyo!kekux!crimson!ume!is.tsukuba.ac.jp!coins!kimoto
From: kimoto@coins.is.tsukuba.ac.jp (Go KIMOTO)
Newsgroups: fj.sources.d
Subject: Re: xdvi-16jgs(0) (Re: xdvi-14jgs)
Message-ID: <9009@coins.is.tsukuba.ac.jp>
Date: 29 Sep 92 16:03:46 GMT
References: <HIRO.92Sep23164046@skywalker.jaist-east.ac.jp> <MARUYAMA.92Sep29185813@sunnm.ism.ac.jp>
Distribution: fj
Organization: Inf. Sci., Univ of TSUKUBA , Tsukuba-City, Ibaraki,Japan
Lines: 116