[Konsole-devel] [Bug 138237] New: Color cube incorrect for xterm-256color mode (patch)

Tom Schumm gentoo at phong.org
Sat Dec 2 05:08:32 UTC 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=138237         
           Summary: Color cube incorrect for xterm-256color mode (patch)
           Product: konsole
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel kde org
        ReportedBy: gentoo phong org


Version:            (using KDE KDE 3.5.5)
Installed from:    Gentoo Packages
OS:                Linux

There is a small error in the math used to calculate the 6x6x6 color cube used in 256 color mode resulting in that part of the palette being too dim. It should use the standard 6x6x6 color cube used everywhere (where each of the rgb values is a multiple of 51).

I've attached a simple patch that corrects the error.  It also makes the same correction in tests/color-spaces.pl where it shows the color cube in 3-byte color mode, and changed the grayscale ramp to be consistent with the 256 color grayscale ramp.



More information about the konsole-devel mailing list