Patch-ID# 100192-02
Keywords: colors, 128, colormap, black, white, background
Synopsis: SunOS 4.1.x: colormap is not correct when 128 colors are used.
Date: Oct/22/93

SunOS release: 4.1.1, 4.1.2, 4.1.3, 4.1.3C

Unbundled Product:

Unbundled Release:

Topic: windt.o patch to fix colormap flashing problem

BugId's fixed with this patch: 1046046

Changes incorporated in this version: adds 4.1.2 and 4.1.3 compatibility

Relevant Architectures: sun3(all), sun4(all)

Obsoleted by: 

Problem Description:
      When the colormap size is 65 or more except (256), the
      background of the window becomes white instead of black and
      some colors of graphics primitives are not correct on 4.1.1.
      When the colormap size is 32, 64, 256, the background of the
      window appears correct (i.e. black).  But when the colormap
      size is 30, 65, 128, 245, the background becomes white.  I
      tested this on a SS2 GX and a SS2/GS running 4.1.1 Beta.

      It will only happen under the following circumstances:
      (1) the window colormap segment is placed starting at entry 0
              but is not a cmshog
      (2) the background color of the window is the same as the
              foreground color of the entire window system


INSTALL:

1. Become superuser.

      tutorial% su
      Password: (your machine's root password)
      tutorial#

2. Save the existing object file (in case of accident).
      
      tutorial# mv /usr/kvm/sys/`arch -k`/OBJ/windt.o /usr/kvm/sys/`arch -k`/OBJ/windt.o.orig

3. Copy the replacement file into the sys area.

      cd to appropriate directory of patch depending on OS e.g 4.1.1 or 4.1.3
      tutorial# cp `arch -k`/windt.o /usr/kvm/sys/`arch -k`/OBJ
      tutorial# chmod  444 /usr/kvm/sys/`arch -k`/OBJ/windt.o

4. Reconfigure and install the new kernel.
      
      Please refer to the System and Network Administration manual
      on building and installing a custom kernel.

