home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / sources / patches / 43 next >
Encoding:
Internet Message Format  |  1992-11-15  |  3.7 KB

  1. Path: sparky!uunet!walter!att-out!rutgers!uwm.edu!rpi!usc!wupost!darwin.sura.net!udel!pervert!louie!eplrx7!eplrx7.es.dupont.com!cristy
  2. From: cristy@eplrx7.es.duPont.com (Cristy)
  3. Newsgroups: alt.sources.patches
  4. Subject: ImageMagick 2.1 - patch 03
  5. Summary: X11 image processing and display utilities
  6. Keywords: X11 image display image-processing JPEG TIFF GIF
  7. Message-ID: <cristy.721878523@eplrx7.es.dupont.com>
  8. Date: 16 Nov 92 01:48:43 GMT
  9. Organization: DuPont Engineering Physics Laboratory
  10. Lines: 97
  11.  
  12. To apply this patch:
  13.  
  14. cd to the top of the source tree (to the directory containing the
  15. "ImageMagick" directory) and do:
  16.  
  17.       patch -p -s < ThisFile
  18.  
  19. Patch will work silently unless an error occurs.  If you want to watch
  20. patch do its thing, leave out the "-s" argument to patch.
  21.  
  22. Finally, to rebuild after applying this patch, cd to the "ImageMagick"
  23. directory and type:
  24.  
  25.       make
  26.  
  27. The entire distribution is available as contrib/ImageMagick.tar.Z on
  28. export.lcs.mit.edu.
  29.  
  30. Brief notes on what this patch fixes:
  31.  
  32. o An expose event for the Magnify window may occur before it is mapped.
  33.   This caused display to fail on Solburne and HP's.
  34.  
  35. diff -c -r ImageMagick/display.c ImageMagick2.1.3/display.c
  36. *** ImageMagick/display.c    Sun Nov 15 20:41:19 1992
  37. --- ImageMagick2.1.3/display.c    Sun Nov 15 20:43:58 1992
  38. ***************
  39. *** 2876,2904 ****
  40.             Refresh windows that are now exposed.
  41.           */
  42.           if (event.xexpose.window == image_window.id)
  43. !           {
  44. !             XRefreshWindow(display,&image_window,&event);
  45. !             /*
  46. !               Reset timeout after expose.
  47. !             */
  48. !             if (resource_info->delay == 0)
  49. !               timeout=(~0);
  50. !             else
  51. !               timeout=(unsigned long) time((time_t *) 0)+resource_info->delay;
  52. !             break;
  53. !           }
  54. !         if (event.xexpose.window == magnify_window.id)
  55. !           if (event.xexpose.count == 0)
  56.               {
  57. !               XMakeMagnifyImage(display,resource_info,&image_window,
  58. !                 &magnify_window);
  59.                 break;
  60.               }
  61.           if (event.xexpose.window == pan_window.id)
  62. !           {
  63. !             XDrawPanRectangle(display,&image_window,&pan_window);
  64. !             break;
  65. !           }
  66.           break;
  67.         }
  68.         case KeyPress:
  69. --- 2876,2908 ----
  70.             Refresh windows that are now exposed.
  71.           */
  72.           if (event.xexpose.window == image_window.id)
  73. !           if (*state & ImageMappedState)
  74.               {
  75. !               XRefreshWindow(display,&image_window,&event);
  76. !               /*
  77. !                 Reset timeout after expose.
  78. !               */
  79. !               if (resource_info->delay == 0)
  80. !                 timeout=(~0);
  81. !               else
  82. !                 timeout=(unsigned long) time((time_t *) 0)+resource_info->delay;
  83.                 break;
  84.               }
  85. +         if (event.xexpose.window == magnify_window.id)
  86. +           if (event.xexpose.count == 0)
  87. +             if (*state & MagnifyMappedState)
  88. +               {
  89. +                 XMakeMagnifyImage(display,resource_info,&image_window,
  90. +                   &magnify_window);
  91. +                 break;
  92. +               }
  93.           if (event.xexpose.window == pan_window.id)
  94. !           if (event.xexpose.count == 0)
  95. !             if (*state & PanIconMappedState)
  96. !               {
  97. !                 XDrawPanRectangle(display,&image_window,&pan_window);
  98. !                 break;
  99. !               }
  100.           break;
  101.         }
  102.         case KeyPress:
  103. Common subdirectories: ImageMagick/images and ImageMagick2.1.3/images
  104. Common subdirectories: ImageMagick/scenes and ImageMagick2.1.3/scenes
  105. Common subdirectories: ImageMagick/utilities and ImageMagick2.1.3/utilities
  106. Common subdirectories: ImageMagick/xtp and ImageMagick2.1.3/xtp
  107. -- 
  108. cristy@dupont.com
  109.