diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2006-07-14 15:31:50 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2006-07-14 15:31:50 +0000 |
commit | a67c4b86111cc88d69e5c1173213a68aa6d6509d (patch) | |
tree | d1f4a4a584ae7cd54cb0b17dd8a96d3074c83e5f /graphics/gtkam | |
parent | f81c636ad51ad6f0a20014fa86d33192a7e6b4a1 (diff) | |
download | ports-a67c4b86111cc88d69e5c1173213a68aa6d6509d.tar.gz ports-a67c4b86111cc88d69e5c1173213a68aa6d6509d.zip |
With 24/32-bit xwd files, xv swaps the red and blue channels. With 16-bit xwd
files, the image is very dark green (almost black).
Both problems are caused by hard-coding the channel order and offsets, rather
than using the colour masks in the xwd header.
xv reads the input into a 24-bit internal image, which is then displayed. The
lack of brightness in the 16-bit display is because the colour values are copied
into the low-order bits of the internal pixmap rather than the high order bits.
The green hue is because the green channel has 6 bits, whereas red and blue only
have 5 bits, making the green twice as (relatively) bright.
The new patch solves that problem.
PR: 96971
Submitted by: Peter Jeremy <peterjeremy@optushome.com.au>
Approved by: Miguel Mendez <mmendez@gmail.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=167797
Diffstat (limited to 'graphics/gtkam')
0 files changed, 0 insertions, 0 deletions