Patch-ID# 100270-01
Keywords: 
Synopsis: 4.0.3 GFX patch: Fix Image changes multiband images into single band
Date: 02-Jan-91

SunOS release: 4.0.3 with GFX patch applied

Unbundled Product: SunVision

Unbundled Release: 1.0

Topic: 

BugID's fixed with this patch: 1043795

Architectures for which this patch is available: sun4, sun4c

Obsoleted by: 1.1

Problem Description:
Operations on a single band don't work.  When using a single
band on multi-band images, the image is changed into a single
band.

Instructions for installation of the patch:
This is a source patch to SunIP. (Note: XGL 1.0 libraries required).

1) Change directory to $SUNVISION/src/bin/sunip
	cd $SUNVISION/src/bin/sunip
2) Save a copy of the original module.
	cp main.c main.c.orig
3) Add write permission to the module main.c
	chmod +w main.c
4) Comment out 2 lines as follows (lines 534 and 538):
1k
  if (nim->parent) {          /* is this a child? */
        nd->im = nim->parent;
/*      nd->parent = nim->parent;  */
    }
    else {
        nd->im = nim;
/*      nd->parent = nim;  */
    }

5) Remake SunIP
	make
Note: If XGL is not installed in /usr, you will have to modify
the Makefile as follows:

	Change:
LIBS =  -L$(SUNVISION)/lib -lpmgr -lsvmisc -lsunip -ltask -lvff \
        -lpixrect -lxgl -lX11 -lm

	to:

LIBS =  -L$(SUNVISION)/lib -L$(XGLHOME)/lib -lpmgr -lsvmisc -lsunip -ltask -lvff \
        -lpixrect -lxgl -lX11 -lm

6) Save a copy of the original SunIP binary:
	cp $SUNVISION/bin/sunip $SUNVISION/bin/sunip.orig

7) Move the new binary to the bin directory.
	make install


