🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.sources.d
Article #254

Re: Tpic 2.2 patch for xdvi

#254
From: MASUTANI Yasuhiro
Date: Fri, 05 Feb 1993 16:33
78 lines
3245 bytes
$@>#C+!w:eBg$G$9!%(J

In article <f1t.remdc@lab.ntt.jp> 
	wasisaka@wink.ntt.jp (WASHISAKA Mitsukazu) writes:
 |$@$A$g$C$HB>$K$b1F6A$,=P$^$9$,!$<j$C<h$jAa$$$N$O(J -copy $@$r;XDj$9$k$3$H$G$9!%(J

-copy$@$G2r7h$G$-$k$s$8$c$J$$$+$J$"$H;W$C$F;d$b;n$7$?$N$G$9$,!$$3$A$i$N(J
$@4D6-$G$O$&$^$/$$$-$^$;$s$G$7$?!*(J

xdvi.c$@$N$J$+$G%0%i%U%#%C%/%9%3%s%F%/%9%H$r@_Dj$7$F$$$k=j$N%3!<%I$C$FJ#(J
$@;($G$9$M!%$5$C$Q$jM}2r$G$-$J$$!%$=$l$K$b4X$o$i$:6/0z$K0J2<$N$h$&$KJQ99(J
$@$7$F!$$J$s$H$+BP=h$7$F$*$j$^$9!%CQ$:$+$7$$$N$G$9$,!$$H$j$"$($:Js9p$7$F(J
$@$*$-$^$9!%(J

*** xdvi.c.SAVE Tue Jan 19 19:59:12 1993
--- xdvi.c      Thu Feb  4 01:38:51 1993
***************
*** 278,283 ****
--- 278,284 ----
  static        GC      foreGC, highGC;
  #ifndef X10
  GC    ruleGC;
+ GC    blackGC;
  static        GC      foreGC2;
  #else /* X10 */
  #define       ruleGC  foreGC
***************
*** 2981,2986 ****
--- 2982,2996 ----
                    RESOURCE(hl_Pixel), RESOURCE(back_Pixel));
        }
  
+       {
+           XGCValues   values;
+ 
+           blackGC = MakeGC((ruleGC->values.function == GXandInverted
+                             ? GXcopyInverted : GXcopy),
+                            ruleGC->values.foreground,
+                            ruleGC->values.background);
+       }
+       
        if (!RESOURCE(brdr_color)) RESOURCE(brdr_Pixel) =
RESOURCE(fore_Pixel);
  
  #ifndef       VMS


*** tpic.c.SAVE Wed Jan 27 13:01:30 1993
--- tpic.c      Thu Feb  4 00:29:23 1993
***************
*** 298,304 ****
--- 298,307 ----
        return the_tile;
  }
  
+ extern GC blackGC;
  
+ #define       ruleGC  blackGC
+ 
  /*
   * Shade the given polygon -- X-coordinates.  Reset shading.
   * The polygon is assumed to be convex!
***************
*** 423,428 ****
--- 426,432 ----
        shading = -1.0;
  }
  
+ #undef ruleGC
  
  /*
   * Set the size of the virtual pen used to draw in milli-inches

--
==================================================================
  $@>#C+!!J]Gn(J                       560 $@Bg:eI\K-Cf;TBT7s;3D.#1!]#1(J
                                   Tel.  06-844-1151 $@Fb@~(J4506
  $@Bg:eBg3X(J $@4pAC9)3XIt(J $@5!3#9)3X2J(J   Fax.  06-843-9730 $@D>DL(J      
Technical Details
Message-ID: <MASUTANI.93Feb5163333@gull.mees.osaka-u.ac.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!news.u-tokyo.ac.jp!s.u-tokyo!kekux!rcnpvx!ccsparc01!icspub!mother!mother!masutani
References: <56l.q2nn4@lab.ntt.jp><MASUTANI.93Feb2001612@gull.mees.osaka-u.ac.jp> <f1t.remdc@lab.ntt.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: f5731,d71452bc36dfa4e8
X-Google-Attributes: gidf5731,public
X-Google-Thread: fbb7e,d71452bc36dfa4e8
X-Google-Attributes: gidfbb7e,public
X-Google-ArrivalTime: 1993-02-05 10:32:46 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!news.u-tokyo.ac.jp!s.u-tokyo!kekux!rcnpvx!ccsparc01!icspub!mother!mother!masutani
Newsgroups: fj.sources.d,fj.comp.texhax
Subject: Re: Tpic 2.2 patch for xdvi
Message-ID: <MASUTANI.93Feb5163333@gull.mees.osaka-u.ac.jp>
From: masutani@gull.mees.osaka-u.ac.jp (MASUTANI Yasuhiro)
Date: 5 Feb 93 16:33:33 GMT
Reply-To: masutani@mees.osaka-u.ac.jp
Sender: news@mother.mees.osaka-u.ac.jp (News Manager)
References: <56l.q2nn4@lab.ntt.jp><MASUTANI.93Feb2001612@gull.mees.osaka-u.ac.jp> <f1t.remdc@lab.ntt.jp>
Distribution: fj
Organization: Dept. of Mech. Eng, Faculty of Eng. Sci., Osaka Univ., JAPAN
In-Reply-To: wasisaka@wink.ntt.jp's message of 4 Feb 93 02:33:15 GMT
Lines: 78