]> git.mxchange.org Git - flightgear.git/commit
#589: 2D panels transparent at night. May also fix #591.
authorThorstenB <brehmt@gmail.com>
Fri, 10 Feb 2012 20:16:39 +0000 (21:16 +0100)
committerThorstenB <brehmt@gmail.com>
Wed, 7 Mar 2012 19:49:13 +0000 (20:49 +0100)
commite24004b17bea061d2de192c95f017674b345e181
treeaeb2f23588d35994afeb2449893491a436a8bba0
parentba257eeecf3ef8aadf1816dbd6d578fd69ff8ed4
#589: 2D panels transparent at night. May also fix #591.
Since d91a617423fa5c269902a847494b3778b05ebcb4 (vectory color calculations)
all 4 elements of a color were scaled with the respective brightness.
The caused some panels to be transparent at night etc.
Before the change, only the 3 RGB elements of the colors were scaled,
while the 4th element (alpha channel?) remained unaltered.
Commit restores the alpha elements to their original behaviour.
=> "Quick hack" for 2.6.0. Need s.o. to double check the initial changes
and commit something clean to "next".
src/Time/light.cxx