home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1836 < prev    next >
Internet Message Format  |  1990-12-28  |  5KB

  1. From: phillips@cs.ubc.ca (George Phillips)
  2. Newsgroups: comp.sys.sgi,alt.sources
  3. Subject: Official patch #1 to igif
  4. Message-ID: <9620@ubc-cs.UUCP>
  5. Date: 18 Sep 90 04:35:32 GMT
  6.  
  7.  
  8. Here is the official patch #1 for igif.
  9.  
  10. The patch contains a couple of trivial changes to make igif compile
  11. on IBM RS6000 machines.  There is also a little fix to make it work
  12. better on GT series machines.  A major stupidity in the event
  13. loop has been fixed (yes, I know better than to busy wait, I just
  14. slipped up), so you really should apply this patch.
  15.  
  16. You can apply this patch by saying "patch < patchfile".  The changes
  17. are small so if you don't have patch it's no big deal to do them by
  18. hand.  Or you can just grab the fully patched source from cs.ubc.ca.
  19.  
  20. Thanks can go to Paul Haeberli and karlton@sgi.com for the GT fix
  21. and karlton@sgi.com for the event loop fix.
  22.  
  23. --
  24. George Phillips phillips@cs.ubc.ca {alberta,uw-beaver,uunet}!ubc-cs!phillips
  25.  
  26.  
  27. *** igif.c    Mon Sep 17 20:52:14 1990
  28. --- ../igif/igif.c    Mon Sep 17 21:03:41 1990
  29. ***************
  30. *** 1,5 ****
  31.   /*
  32. !  * igif.c -- display GIF images on the personal iris and other SGI machines.
  33.    *
  34.    * usage:    igif [ -d -e -f -l -t -2 ] { file.gif }
  35.    *
  36. --- 1,5 ----
  37.   /*
  38. !  * igif.c -- display GIF images on SGI and RS6000 (IBM) machines.
  39.    *
  40.    * usage:    igif [ -d -e -f -l -t -2 ] { file.gif }
  41.    *
  42. ***************
  43. *** 521,528 ****
  44. --- 521,530 ----
  45.   
  46.       init_newsmap();
  47.   
  48. + #ifndef rs6000
  49.       if (stay_in_foreground)
  50.           foreground();
  51. + #endif
  52.   
  53.       prefsize(win_width = maxwidth * mag, win_height = maxheight * mag);
  54.       if (winopen("igif") < 0) {
  55. ***************
  56. *** 573,579 ****
  57.           update_loadinfo();
  58.   
  59.       do {
  60. !         while (qtest()) {
  61.               switch (qread(&data)) {
  62.               case MENUBUTTON:
  63.                   if ((i = dopup(imgmenu)) <= 0)
  64. --- 575,581 ----
  65.           update_loadinfo();
  66.   
  67.       do {
  68. !         while (qtest() || (block && !redrawing)) {
  69.               switch (qread(&data)) {
  70.               case MENUBUTTON:
  71.                   if ((i = dopup(imgmenu)) <= 0)
  72. ***************
  73. *** 605,610 ****
  74. --- 607,613 ----
  75.                   break;
  76.               case REDRAW:
  77.               case PIECECHANGE:
  78. +                 reshapeviewport();
  79.                   if (cur_imf != NULL) {
  80.                       cur_img = cur_imf->imglist;
  81.                       if (cur_img != NULL) {
  82. *** igif.1    Mon Sep 17 20:52:12 1990
  83. --- ../igif/igif.1    Mon Sep 17 21:02:09 1990
  84. ***************
  85. *** 90,95 ****
  86. --- 90,103 ----
  87.   Dither should be done after enlarging the image.  It isn't so using \-d
  88.   and \-2 may give a poor result.
  89.   
  90. + .PP
  91. + The \-f flag has no affect on RS6000 systems.
  92. + .PP
  93. + The pop-up menu is not very nice on an RS6000 system, but
  94. + .I igif
  95. + can do diddly-squat about it.
  96.   .SH AUTHOR
  97.   George Phillips
  98.   .br
  99. *** README    Mon Sep 17 20:52:11 1990
  100. --- ../igif/README    Mon Sep 17 20:53:30 1990
  101. ***************
  102. *** 11,16 ****
  103. --- 11,18 ----
  104.       - menu for selecting from multiple GIF files
  105.       - incremental reading of images for fast response
  106.   
  107. + Igif is also available via anonymous ftp from cs.ubc.ca: /src/igif2.1.shar.Z.
  108.   
  109.   Copyright 1989,1990 by George Phillips
  110.   
  111. *** Makefile    Mon Sep 17 20:52:12 1990
  112. --- ../igif/Makefile    Mon Sep 17 18:59:00 1990
  113. ***************
  114. *** 1,8 ****
  115. - CFLAGS=-g
  116.   # If this doesn't work, try LIB=-Zg
  117.   LIB=-lgl_s
  118.   
  119.   igif: igif.o decoder.o newsmap.o floydstein.o
  120.       cc $(CFLAGS) -o igif igif.o decoder.o newsmap.o floydstein.o $(LIB)
  121.   
  122. --- 1,12 ----
  123.   # If this doesn't work, try LIB=-Zg
  124. + # Uncomment this for SGI machines
  125.   LIB=-lgl_s
  126. + CFLAGS=-g
  127.   
  128. + # Uncomment these for IBM RS6000 machines
  129. + #LIB=-L/lib -lgl
  130. + #CFLAGS=-g -Drs6000
  131.   igif: igif.o decoder.o newsmap.o floydstein.o
  132.       cc $(CFLAGS) -o igif igif.o decoder.o newsmap.o floydstein.o $(LIB)
  133.   
  134. ***************
  135. *** 10,21 ****
  136.   #    cc $(CFLAGS) -o igif igif.u decoder.u newsmap.u floydstein.u $(LIB)
  137.       
  138.   clean:
  139. !     rm -f igif a.out core Makefile.old img.shar
  140.       rm -f *.o
  141.   
  142.   shar:
  143.       shar -pX -v README igif.1 Makefile igif.c decoder.c newsmap.c floydstein.c \
  144. !         errs.h std.h mem_image.h newsmap.h imgfile.h > img.shar
  145.   
  146.   # If you put something after here, makedep will destroy it!
  147.   decoder.o: errs.h mem_image.h std.h
  148. --- 14,29 ----
  149.   #    cc $(CFLAGS) -o igif igif.u decoder.u newsmap.u floydstein.u $(LIB)
  150.       
  151.   clean:
  152. !     rm -f igif a.out core Makefile.old igif2.shar igif2.1.shar igif2.2.shar
  153.       rm -f *.o
  154.   
  155.   shar:
  156.       shar -pX -v README igif.1 Makefile igif.c decoder.c newsmap.c floydstein.c \
  157. !         errs.h std.h mem_image.h newsmap.h imgfile.h > igif2.shar
  158. ! shar2:
  159. !     shar -pX -v README igif.1 Makefile igif.c > igif2.1.shar
  160. !     shar -pX -v decoder.c newsmap.c floydstein.c \
  161. !         errs.h std.h mem_image.h newsmap.h imgfile.h > igif2.2.shar
  162.   
  163.   # If you put something after here, makedep will destroy it!
  164.   decoder.o: errs.h mem_image.h std.h
  165.