home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!walter!att-out!rutgers!uwm.edu!rpi!usc!wupost!darwin.sura.net!udel!pervert!louie!eplrx7!eplrx7.es.dupont.com!cristy
- From: cristy@eplrx7.es.duPont.com (Cristy)
- Newsgroups: alt.sources.patches
- Subject: ImageMagick 2.1 - patch 03
- Summary: X11 image processing and display utilities
- Keywords: X11 image display image-processing JPEG TIFF GIF
- Message-ID: <cristy.721878523@eplrx7.es.dupont.com>
- Date: 16 Nov 92 01:48:43 GMT
- Organization: DuPont Engineering Physics Laboratory
- Lines: 97
-
- To apply this patch:
-
- cd to the top of the source tree (to the directory containing the
- "ImageMagick" directory) and do:
-
- patch -p -s < ThisFile
-
- Patch will work silently unless an error occurs. If you want to watch
- patch do its thing, leave out the "-s" argument to patch.
-
- Finally, to rebuild after applying this patch, cd to the "ImageMagick"
- directory and type:
-
- make
-
- The entire distribution is available as contrib/ImageMagick.tar.Z on
- export.lcs.mit.edu.
-
- Brief notes on what this patch fixes:
-
- o An expose event for the Magnify window may occur before it is mapped.
- This caused display to fail on Solburne and HP's.
-
- diff -c -r ImageMagick/display.c ImageMagick2.1.3/display.c
- *** ImageMagick/display.c Sun Nov 15 20:41:19 1992
- --- ImageMagick2.1.3/display.c Sun Nov 15 20:43:58 1992
- ***************
- *** 2876,2904 ****
- Refresh windows that are now exposed.
- */
- if (event.xexpose.window == image_window.id)
- ! {
- ! XRefreshWindow(display,&image_window,&event);
- ! /*
- ! Reset timeout after expose.
- ! */
- ! if (resource_info->delay == 0)
- ! timeout=(~0);
- ! else
- ! timeout=(unsigned long) time((time_t *) 0)+resource_info->delay;
- ! break;
- ! }
- ! if (event.xexpose.window == magnify_window.id)
- ! if (event.xexpose.count == 0)
- {
- ! XMakeMagnifyImage(display,resource_info,&image_window,
- ! &magnify_window);
- break;
- }
- if (event.xexpose.window == pan_window.id)
- ! {
- ! XDrawPanRectangle(display,&image_window,&pan_window);
- ! break;
- ! }
- break;
- }
- case KeyPress:
- --- 2876,2908 ----
- Refresh windows that are now exposed.
- */
- if (event.xexpose.window == image_window.id)
- ! if (*state & ImageMappedState)
- {
- ! XRefreshWindow(display,&image_window,&event);
- ! /*
- ! Reset timeout after expose.
- ! */
- ! if (resource_info->delay == 0)
- ! timeout=(~0);
- ! else
- ! timeout=(unsigned long) time((time_t *) 0)+resource_info->delay;
- break;
- }
- + if (event.xexpose.window == magnify_window.id)
- + if (event.xexpose.count == 0)
- + if (*state & MagnifyMappedState)
- + {
- + XMakeMagnifyImage(display,resource_info,&image_window,
- + &magnify_window);
- + break;
- + }
- if (event.xexpose.window == pan_window.id)
- ! if (event.xexpose.count == 0)
- ! if (*state & PanIconMappedState)
- ! {
- ! XDrawPanRectangle(display,&image_window,&pan_window);
- ! break;
- ! }
- break;
- }
- case KeyPress:
- Common subdirectories: ImageMagick/images and ImageMagick2.1.3/images
- Common subdirectories: ImageMagick/scenes and ImageMagick2.1.3/scenes
- Common subdirectories: ImageMagick/utilities and ImageMagick2.1.3/utilities
- Common subdirectories: ImageMagick/xtp and ImageMagick2.1.3/xtp
- --
- cristy@dupont.com
-